mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.4 KiB
CMake
72 lines
2.4 KiB
CMake
#
|
|
# Copyright 2013-2020 Software Radio Systems Limited
|
|
#
|
|
# By using this file, you agree to the terms and conditions set
|
|
# forth in the LICENSE file which can be found at the top level of
|
|
# the distribution.
|
|
#
|
|
|
|
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 ${SRSLTE_VERSION_MAJOR})
|
|
SET(CPACK_PACKAGE_VERSION_MINOR ${SRSLTE_VERSION_MINOR})
|
|
SET(CPACK_PACKAGE_VERSION_PATCH ${SRSLTE_VERSION_PATCH})
|
|
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)
|
|
|