2017-10-09 03:01:13 -07:00
|
|
|
#
|
2020-03-13 04:12:52 -07:00
|
|
|
# Copyright 2013-2020 Software Radio Systems Limited
|
2017-10-09 03:01:13 -07:00
|
|
|
#
|
2020-11-26 01:25:22 -08:00
|
|
|
# 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.
|
2017-10-09 03:01:13 -07:00
|
|
|
#
|
|
|
|
|
|
|
|
find_package(LibConfig REQUIRED)
|
|
|
|
find_package(SCTP REQUIRED)
|
|
|
|
|
|
|
|
if(BUILD_STATIC)
|
|
|
|
set(LIBCONFIGPP_LIBRARIES "${LIBCONFIGPP_STATIC_LIBRARY_PATH}")
|
|
|
|
endif(BUILD_STATIC)
|
|
|
|
|
|
|
|
if(NOT Boost_FOUND)
|
|
|
|
message(FATAL_ERROR "Boost required to compile srsEPC")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Setup the include and linker paths
|
|
|
|
########################################################################
|
|
|
|
include_directories(
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${SEC_INCLUDE_DIRS}
|
2018-04-01 09:08:24 -07:00
|
|
|
${PROJECT_SOURCE_DIR}
|
2017-10-09 03:01:13 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
link_directories(
|
|
|
|
${Boost_LIBRARY_DIRS}
|
|
|
|
${SEC_LIBRARY_DIRS}
|
|
|
|
)
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Add subdirectories
|
|
|
|
########################################################################
|
|
|
|
add_subdirectory(src)
|
2018-06-04 06:05:38 -07:00
|
|
|
|
|
|
|
########################################################################
|
|
|
|
# Default configuration files
|
|
|
|
########################################################################
|
2018-06-05 02:34:01 -07:00
|
|
|
install(FILES epc.conf.example DESTINATION ${DATA_DIR})
|
|
|
|
install(FILES mbms.conf.example DESTINATION ${DATA_DIR})
|
|
|
|
install(FILES user_db.csv.example DESTINATION ${DATA_DIR})
|
|
|
|
install(PROGRAMS srsepc_if_masq.sh DESTINATION ${RUNTIME_DIR})
|