-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (37 loc) · 996 Bytes
/
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
cmake_minimum_required(VERSION 3.15)
project(xapp_iqos VERSION 0.0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_C_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
## Definitions
add_compile_definitions(SPDLOG_ACTIVE_LEVEL)
## Add libs
add_subdirectory(libs)
## build external libs
### SPDLOG for logs
Include(FetchContent)
FetchContent_Declare(
spdlog
GIT_REPOSITORY https://github.com/gabime/spdlog.git
GIT_TAG v1.14.1
)
FetchContent_MakeAvailable(spdlog)
## Config executable
add_executable(xapp_iqos src/main.cpp
src/logger.cpp
src/kpmManager.cpp
src/e2Info.cpp
)
## Link libraries
target_include_directories(xapp_iqos PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/libs
${CMAKE_CURRENT_SOURCE_DIR}/libs/flexric/src/xApp
)
target_link_libraries(xapp_iqos PUBLIC
e42_xapp
spdlog::spdlog $<$<BOOL:${MINGW}>:ws2_32>
-pthread
-lsctp
-ldl
)