srsLTE/srsenb/CMakeLists.txt

47 lines
1.4 KiB
CMake
Raw Normal View History

2017-06-01 03:25:57 -07:00
#
2021-03-19 03:45:56 -07:00
# Copyright 2013-2021 Software Radio Systems Limited
2017-06-01 03:25:57 -07: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-06-01 03:25:57 -07:00
#
find_package(LibConfig REQUIRED)
find_package(SCTP REQUIRED)
2017-06-23 06:49:21 -07:00
if(BUILD_STATIC)
2017-06-01 03:25:57 -07:00
set(LIBCONFIGPP_LIBRARIES "${LIBCONFIGPP_STATIC_LIBRARY_PATH}")
2017-06-23 06:49:21 -07:00
endif(BUILD_STATIC)
2017-06-01 03:25:57 -07:00
if(NOT Boost_FOUND)
message(FATAL_ERROR "Boost required to compile srsENB")
endif()
########################################################################
# Setup the include and linker paths
########################################################################
include_directories(
${Boost_INCLUDE_DIRS}
${SEC_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}
2017-06-01 03:25:57 -07:00
)
link_directories(
${Boost_LIBRARY_DIRS}
${SEC_LIBRARY_DIRS}
2017-06-01 03:25:57 -07:00
)
########################################################################
# Add subdirectories
########################################################################
add_subdirectory(src)
add_subdirectory(test)
########################################################################
# Default configuration files
########################################################################
2018-06-05 02:34:01 -07:00
install(FILES enb.conf.example DESTINATION ${DATA_DIR})
install(FILES rb.conf.example DESTINATION ${DATA_DIR})
install(FILES rr.conf.example DESTINATION ${DATA_DIR})
install(FILES sib.conf.example DESTINATION ${DATA_DIR})