-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
60 lines (44 loc) · 2.03 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
55
56
57
58
59
60
cmake_minimum_required(VERSION 3.21)
project(ITACBS_remake)
set(CMAKE_OSX_ARCHITECTURES "arm64")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -O3 -g")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(Boost 1.58 REQUIRED COMPONENTS program_options)
find_package(PkgConfig)
find_package(yaml-cpp REQUIRED)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
file(GLOB THIRD_PARTY "third_party/*.cpp" "third_party/*.h")
add_executable(ITACBS_remake main_ITACBS.cpp include/common.hpp include/ITACBS/ITACBS.hpp include/ITACBS/ITACBS.cpp include/ITACBS/ITACBSNode.hpp include/ITACBS/ITACBSNode.cpp include/dynamic_hungarian_assignment.hpp include/common.cpp)
target_link_libraries(ITACBS_remake
${Boost_LIBRARIES}
yaml-cpp
)
add_executable(CBSTA_remake main_CBSTA.cpp include/common.hpp include/CBSTA/CBSTANode.hpp include/CBSTA/CBSTANode.cpp include/dynamic_hungarian_assignment.hpp include/CBSTA/CBSTA.cpp include/CBSTA/CBSTA.hpp include/CBSTA/TANode.cpp include/CBSTA/TANode.hpp include/common.cpp)
target_link_libraries(CBSTA_remake
${Boost_LIBRARIES}
yaml-cpp
)
add_executable(ITA_ECBS_v0 main_ITA_ECBS_v0.cpp include/ITA_ECBS_v0/ITA_ECBS.cpp include/ITA_ECBS_v0/ITA_ECBSNode.cpp include/common.cpp)
target_link_libraries(ITA_ECBS_v0
${Boost_LIBRARIES}
yaml-cpp
)
add_executable(ITA_ECBS main_ITA_ECBS.cpp include/ITA_ECBS/ITA_ECBS.cpp include/ITA_ECBS/ITA_ECBSNode.cpp include/common.cpp)
target_link_libraries(ITA_ECBS
${Boost_LIBRARIES}
yaml-cpp
)
add_executable(ECBSTA main_ECBSTA.cpp include/ECBSTA/ECBSTANode.cpp include/ECBSTA/ECBSTA.cpp include/ECBSTA/TANode.cpp include/common.cpp)
target_link_libraries(ECBSTA
${Boost_LIBRARIES}
yaml-cpp
)
#option(SERIAL "Option for serial version" OFF)
#if(SERIAL)
# target_compile_definitions(ITACBS_parallel PRIVATE PARLAY_SEQUENTIAL)
#endif()