/
CMakeLists.txt
27 lines (19 loc) · 953 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
cmake_minimum_required(VERSION 3.7)
project(Sofia LANGUAGES CXX)
set(CMAKE_DEBUG_POSTFIX d)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
add_compile_options("$<$<CONFIG:DEBUG>:-DDEBUG>")
add_compile_options("$<$<CONFIG:DEBUG>:-D_DEBUG>")
add_compile_options("$<$<CONFIG:RELEASE>:-DBOOST_DISABLE_ASSERTS>")
include("${CMAKE_SOURCE_DIR}/vendor/rapidjson.cmake")
find_package(Boost COMPONENTS system filesystem REQUIRED)
#find_package(RapidJSON REQUIRED NO_DEFAULT_PATH)
add_subdirectory(Tools/)
include("${CMAKE_SOURCE_DIR}/FCAPS/fcaps-lib.cmake")
include_directories(BEFORE ${RapidJSON_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/FCAPS/include)
link_directories(BEFORE ${PROJECT_NAME} ${Boost_LIBRARY_DIRS} ${rapidjson_LIBRARY_DIRS})
add_executable(${PROJECT_NAME} Sofia-PS/src/main.cpp)
target_include_directories(${PROJECT_NAME} PRIVATE Sofia-PS/inc)
target_link_libraries(${PROJECT_NAME} PUBLIC SharedTools ${Boost_LIBRARIES})