64 lines
2.1 KiB
CMake
64 lines
2.1 KiB
CMake
SET(CPACK_PACKAGE_DESCRIPTION "srsLTE")
|
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "LTE library for SDR.")
|
|
SET(CPACK_PACKAGE_NAME "srslte")
|
|
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.3.6), libgcc1 (>= 1:4.1), libboost-dev (>= 1.35)")
|
|
|
|
SET(CPACK_PACKAGE_CONTACT "Ismael Gomez ")
|
|
SET(CPACK_PACKAGE_VENDOR "Software Radio Systems Limited")
|
|
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
|
|
SET(CPACK_PACKAGE_VERSION_MINOR "1")
|
|
SET(CPACK_PACKAGE_VERSION_PATCH "0")
|
|
SET(VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
|
|
|
########################################################################
|
|
# Setup additional defines for OS types
|
|
########################################################################
|
|
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
SET(LINUX TRUE)
|
|
ENDIF()
|
|
|
|
IF(LINUX AND EXISTS "/etc/debian_version")
|
|
SET(DEBIAN TRUE)
|
|
ENDIF()
|
|
|
|
IF(LINUX AND EXISTS "/etc/redhat-release")
|
|
SET(REDHAT TRUE)
|
|
ENDIF()
|
|
|
|
########################################################################
|
|
# Set generator type for recognized systems
|
|
########################################################################
|
|
IF(CPACK_GENERATOR)
|
|
#already set
|
|
ELSEIF(APPLE)
|
|
SET(CPACK_GENERATOR PackageMaker)
|
|
ELSEIF(WIN32)
|
|
SET(CPACK_GENERATOR NSIS)
|
|
ELSEIF(DEBIAN)
|
|
SET(CPACK_GENERATOR DEB)
|
|
ELSEIF(REDHAT)
|
|
SET(CPACK_GENERATOR RPM)
|
|
ELSE()
|
|
SET(CPACK_GENERATOR TGZ)
|
|
ENDIF()
|
|
|
|
########################################################################
|
|
# Setup CPack Debian
|
|
########################################################################
|
|
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libboost-dev")
|
|
|
|
########################################################################
|
|
# Setup CPack RPM
|
|
########################################################################
|
|
SET(CPACK_RPM_PACKAGE_REQUIRES "boost-devel")
|
|
|
|
########################################################################
|
|
# Setup CPack NSIS
|
|
########################################################################
|
|
SET(CPACK_NSIS_MODIFY_PATH ON)
|
|
|
|
|
|
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}-${CMAKE_SYSTEM_PROCESSOR}")
|
|
INCLUDE(CPack)
|
|
|