-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
30 lines (22 loc) · 1020 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
cmake_minimum_required(VERSION 3.10)
set (EXTERNAL_LIB_PATH "$ENV{MYWORLD}/src/lib/external")
set (CMAKE_CXX_COMPILER /usr/bin/g++-9)
set (CMAKE_CXX_FLAGS "-std=c++1z -msse4.2 -Wall -Wextra -O3 -g -fopenmp -lstdc++fs")
###### Include directories
FIND_PACKAGE(Boost 1.65 COMPONENTS system filesystem REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
include_directories(${EXTERNAL_LIB_PATH}/json/include)
include_directories(${EXTERNAL_LIB_PATH}/websocketpp)
include_directories($ENV{MYWORLD}/src/common)
include_directories($ENV{MYWORLD}/src/bin)
include_directories($ENV{MYWORLD}/src/lib/webdash-executer/include)
###### *.cpp code to compile
list(APPEND ALL_CPP_FILES
)
###### Binaries to create
add_executable(report-build-state src/main.cpp)
###### Library paths
target_link_libraries(report-build-state -L"$ENV{MYWORLD}/app-persistent/lib")
###### Libraries
target_link_libraries(report-build-state Boost::filesystem)
target_link_libraries(report-build-state webdash-executer)