-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (41 loc) · 1.67 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "Source tree builds are disabled.")
endif()
cmake_minimum_required(VERSION 3.4)
project(NexRANApp)
include(FindPkgConfig)
include(FindPackageHandleStandardArgs)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules")
include(buildinfo)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
option(ENABLE_BUILD_TIMESTAMP "Enable build timestamp" OFF)
find_package(Threads REQUIRED)
find_package(Pistache 0.0.2 REQUIRED)
find_package(InfluxDB REQUIRED)
pkg_check_modules(HAVE_MDCLOG REQUIRED mdclog)
find_path(RICXFCPP_INCLUDE_DIRS ricxfcpp/messenger.hpp REQUIRED)
find_library(RICXFCPP_LIBRARIES ricxfcpp REQUIRED)
find_package_handle_standard_args(ricxfcpp DEFAULT_MSG RICXFCPP_LIBRARIES RICXFCPP_INCLUDE_DIRS)
if(NOT ${ricxfcpp_FOUND})
message(FATAL_ERROR "ricxfcpp not found")
endif()
message(STATUS "found ricxfcpp libs: " ${RICXFCPP_LIBRARIES})
message(STATUS "found ricxfcpp include dirs: " ${RICXFCPP_INCLUDE_DIRS})
set(CMAKE_CXX_FLAGS "-pthread")
find_path(RMR_INCLUDE_DIRS rmr/rmr.h REQUIRED)
find_library(RMR_LIBRARIES rmr_si REQUIRED)
find_package_handle_standard_args(rmr DEFAULT_MSG RMR_LIBRARIES RMR_INCLUDE_DIRS)
if(NOT ${rmr_FOUND})
message(FATAL_ERROR "rmr not found")
endif()
message(STATUS "found rmr libs: " ${RMR_LIBRARIES})
message(STATUS "found rmr include dirs: " ${RMR_INCLUDE_DIRS})
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
include_directories(${PROJECT_SOURCE_DIR}/lib/e2ap/include)
include_directories(${PROJECT_SOURCE_DIR}/lib/e2sm/include)
add_subdirectory(lib/e2ap)
add_subdirectory(lib/e2sm)
include_directories(${PROJECT_SOURCE_DIR}/include)
add_subdirectory(src)