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.
86 lines
3.0 KiB
CMake
86 lines
3.0 KiB
CMake
11 years ago
|
#
|
||
|
# Copyright 2012-2013 The Iris Project Developers. See the
|
||
|
# COPYRIGHT file at the top-level directory of this distribution
|
||
|
# and at http://www.softwareradiosystems.com/iris/copyright.html.
|
||
|
#
|
||
|
# This file is part of the Iris Project.
|
||
|
#
|
||
|
# Iris is free software: you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU Lesser General Public License as
|
||
|
# published by the Free Software Foundation, either version 3 of
|
||
|
# the License, or (at your option) any later version.
|
||
|
#
|
||
|
# Iris is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
# GNU Lesser General Public License for more details.
|
||
|
#
|
||
|
# A copy of the GNU Lesser General Public License can be found in
|
||
|
# the LICENSE file in the top-level directory of this distribution
|
||
|
# and at http://www.gnu.org/licenses/.
|
||
|
#
|
||
|
|
||
|
SET(CPACK_PACKAGE_DESCRIPTION "libLTE")
|
||
|
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "LTE library for SDR.")
|
||
|
SET(CPACK_PACKAGE_NAME "liblte")
|
||
|
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 "University of Dublin, Trinity College")
|
||
|
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)
|
||
|
|