-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
47 lines (34 loc) · 1.17 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
project(cbs)
cmake_minimum_required (VERSION 2.6)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
include_directories("inc")
file(GLOB SOURCES "src/cbs/*.cpp")
file(GLOB STP_SOURCES "src/stp/*.cpp")
# Find Boost
find_package( Boost 1.49.0 REQUIRED COMPONENTS program_options system filesystem)
include_directories( ${Boost_INCLUDE_DIRS} )
add_library( MAPF_PC_LIB STATIC ${SOURCES} ${STP_SOURCES} )
add_executable(cbs "src/cbs.cpp" )
add_executable(pbs "src/pbs.cpp" )
add_executable(task_assignment "src/task_assignment.cpp" )
set_property(
TARGET cbs
PROPERTY COMPILE_DEFINITIONS IL_STD
)
set_property(
TARGET pbs
PROPERTY COMPILE_DEFINITIONS IL_STD
)
set_property(
TARGET task_assignment
PROPERTY COMPILE_DEFINITIONS IL_STD
)
target_link_libraries(cbs MAPF_PC_LIB)
target_link_libraries(pbs MAPF_PC_LIB)
target_link_libraries(task_assignment MAPF_PC_LIB)
target_link_libraries(cbs ${Boost_LIBRARIES})
target_link_libraries(pbs ${Boost_LIBRARIES})
target_link_libraries(task_assignment ${Boost_LIBRARIES})