Statistics
| Branch: | Tag: | Revision:

root / images / CMakeLists.txt @ e7df6384

History | View | Annotate | Download (2.21 KB)

1
#
2
# Copyright 2010-2012 Ettus Research LLC
3
#
4
# This program is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, either version 3 of the License, or
7
# (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
#
17

    
18
########################################################################
19
# Setup Project
20
########################################################################
21
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
22
PROJECT(UHD-images NONE)
23
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../host/cmake/Modules)
24
INCLUDE(UHDVersion) #sets version variables (used below)
25
EXECUTE_PROCESS(COMMAND "date" OUTPUT_VARIABLE DATETIME_NOW OUTPUT_STRIP_TRAILING_WHITESPACE) #sets the date
26

    
27
########################################################################
28
# Setup CPack
29
########################################################################
30
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ettus Research - USRP Hardware Driver Images")
31
SET(CPACK_PACKAGE_VENDOR              "Ettus Research LLC")
32
SET(CPACK_PACKAGE_CONTACT             "support@ettus.com")
33
SET(CPACK_PACKAGE_VERSION ${UHD_VERSION})
34
SET(CPACK_PACKAGE_FILE_NAME "uhd-images_${UHD_VERSION}")
35
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "all")
36
INCLUDE(CPack) #include after setting vars
37
MESSAGE(STATUS "Version: ${UHD_VERSION}")
38

    
39
########################################################################
40
# Install Images
41
########################################################################
42

    
43
#tag the images with a version number (something identifiable)
44
FILE(WRITE ${CMAKE_SOURCE_DIR}/images/${UHD_VERSION_MAJOR}.${UHD_VERSION_MINOR}.${UHD_VERSION_PATCH}.tag "${UHD_VERSION}\n${DATETIME_NOW}\n")
45
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/images DESTINATION share/uhd)
46
INSTALL(FILES ${CMAKE_SOURCE_DIR}/../host/LICENSE.txt DESTINATION share/uhd/images)