summaryrefslogtreecommitdiffstats
path: root/host/Modules/UHDPackage.cmake
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-22 10:37:33 -0700
committerJosh Blum <josh@joshknows.com>2011-03-22 10:37:33 -0700
commit55b4ca73b44735523e5ab3348735a64cbf19cf30 (patch)
treede24e6fefcaba55a7aae48ac40e96c5bc4d5df7d /host/Modules/UHDPackage.cmake
parenta963caab9b6500ecef015fa5c514f2a7ae23046f (diff)
downloaduhd-55b4ca73b44735523e5ab3348735a64cbf19cf30.tar.gz
uhd-55b4ca73b44735523e5ab3348735a64cbf19cf30.tar.bz2
uhd-55b4ca73b44735523e5ab3348735a64cbf19cf30.zip
uhd: setup UHD_VERSION and CPACK_PACKAGE_FILE_NAME
Diffstat (limited to 'host/Modules/UHDPackage.cmake')
-rw-r--r--host/Modules/UHDPackage.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/Modules/UHDPackage.cmake b/host/Modules/UHDPackage.cmake
index ed705148a..6e0af31ba 100644
--- a/host/Modules/UHDPackage.cmake
+++ b/host/Modules/UHDPackage.cmake
@@ -19,6 +19,14 @@
INCLUDE(UHDVersion) #sets version information
########################################################################
+# Setup package file name
+########################################################################
+SET(CPACK_PACKAGE_FILE_NAME "UHD-${UHD_VERSION}")
+IF(DEFINED UHD_PACKAGE_SUFFIX) #append optional suffix (usually system type)
+ SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${UHD_PACKAGE_SUFFIX})
+ENDIF(DEFINED UHD_PACKAGE_SUFFIX)
+
+########################################################################
# Setup CPack General
########################################################################
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ettus Research - Universal Hardware Driver")