-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
117 lines (100 loc) · 3.86 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
cmake_minimum_required(VERSION 3.2)
project(Metronome)
# Ensure that we find all of our support CMake scripts. These are things like
# locating required libraries for addons, etc. Store them in modules/
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/modules/")
if (NOT APPLE AND NOT WIN32)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
elseif(WIN32)
# Stack must be increased from standard 1MB
set(CMAKE_EXE_LINKER_FLAGS "/STACK:0x2000000")
endif()
set(CXX clang++)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
if (WIN32 AND NOT MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall /bigobj /std:c++17")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -pedantic -Wextra")
endif(WIN32 AND NOT MINGW)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS} -O3")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS} -g -O0")
set(SOURCE_FILES
src/Metronome.cpp
src/algorithms/AStar.hpp
src/algorithms/ClusterRts.hpp
src/algorithms/LssLrtaStar.hpp
src/algorithms/TBAStar.hpp
src/algorithms/OfflinePlanner.hpp
src/algorithms/OnlinePlanner.hpp
src/algorithms/Planner.hpp
src/algorithms/planner_tools/Comparators.hpp
src/algorithms/TimeBoundedAStar.hpp
src/domains/GridWorld.hpp
src/domains/Domain.hpp
src/domains/SlidingTilePuzzle.hpp
src/domains/OrientationGrid.hpp
src/domains/TestDomain.hpp
src/domains/Traffic.hpp
src/domains/SuccessorBundle.hpp
src/domains/VacuumWorld.hpp
src/utils/PriorityQueue.hpp
src/utils/Hash.hpp
src/visualization/Visualizer.hpp
src/utils/Location2D.hpp
src/experiment/termination/TimeTerminationChecker.hpp
src/experiment/Experiment.hpp
src/experiment/OfflineExperiment.hpp
src/experiment/RealTimeExperiment.hpp
src/experiment/Configuration.hpp
src/experiment/Result.hpp
src/experiment/ConfigurationExecutor.hpp
src/MetronomeException.hpp
src/utils/File.hpp
src/experiment/termination/ExpansionTerminationChecker.hpp
src/utils/Statistic.hpp
src/utils/ObjectPool.hpp
src/MemoryConfiguration.hpp
# src/utils/BucketPriorityQueue.hpp
src/domains/DynamicGridWorld.hpp)
set(TEST_FILES
test/test.cpp
test/utils/PriorityQueueTest.hpp
test/utils/ObjectPoolTest.hpp
test/domains/GridWorldTest.hpp
test/domains/DynamicGridWorldTest.hpp
test/domains/SlidingTilePuzzleTest.hpp
test/domains/VacuumWorldTest.hpp
test/algorithms/AStarTest.hpp
test/algorithms/LssLrtaStarTest.hpp
src/utils/TimeMeasurement.hpp
test/experiment/TimeTerminationCheckerTest.hpp)
add_executable(Metronome ${SOURCE_FILES})
add_executable(MetronomeTest ${TEST_FILES})
include_directories(SYSTEM
dependencies
)
include_directories(src)
# The following options can enable algorithms and domains.
# These options have a large impact on the compilation speed.
# Comment the following line out to disable Gephi (Stream Graph HTTP) visualization
# add_definitions(-DSTREAM_GRAPH)
# Select the possible algorithms.
add_definitions(-DENABLE_A_STAR)
#add_definitions(-DENABLE_LSS_LRTA_STAR)
#add_definitions(-DENABLE_CLUSTER_RTS)
#add_definitions(-DENABLE_TIME_BOUNDED_A_STAR_BENCE)
#add_definitions(-DENABLE_TIME_BOUNDED_A_STAR_KEVIN)
# Select the possible domains
#add_definitions(-DENABLE_GRID_WORLD)
add_definitions(-DENABLE_DYNAMIC_GRID_WORLD)
#add_definitions(-DENABLE_ORIENTATION_GRID)
#add_definitions(-DENABLE_VACUUM_WORLD)
#add_definitions(-DENABLE_SLIDING_TILE_PUZZLE)
#add_definitions(-DENABLE_TRAFFIC_WORLD)
# Disable logger
#add_definitions(-DELPP_DISABLE_LOGS)
if (MINGW OR WIN32)
target_link_libraries(Metronome ws2_32)
endif()
target_link_libraries(Metronome)
target_link_libraries(MetronomeTest)