forked from csbence/metronome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
82 lines (72 loc) · 2.78 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
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)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
endif(NOT APPLE)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -pedantic -Wextra")
set(CXX clang++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS} -O3")
set(SOURCE_FILES
src/main.cpp
src/algorithms/AStar.hpp
src/algorithms/LssLrtaStar.hpp
src/algorithms/FHat.hpp
src/algorithms/MoRts.hpp
src/algorithms/SlowRts.hpp
src/algorithms/OfflinePlanner.hpp
src/algorithms/OnlinePlanner.hpp
src/algorithms/Planner.hpp
src/domains/GridWorld.hpp
src/domains/Domain.hpp
src/domains/SlidingTilePuzzle.hpp
src/domains/TestDomain.hpp
src/domains/Traffic.hpp
src/domains/SuccessorBundle.hpp
src/domains/Graph.hpp
src/utils/PriorityQueue.hpp
src/utils/Hasher.hpp
src/utils/Visualizer.hpp
src/utils/Location2D.hpp
src/experiment/termination/TimeTerminationChecker.hpp
src/experiment/PlanManager.hpp
src/experiment/OfflinePlanManager.hpp
src/experiment/RealTimePlanManager.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/MemoryConfiguration.hpp
src/utils/StaticVector.hpp
src/algorithms/FRts.hpp src/utils/String.hpp)
set(TEST_FILES
test/test.cpp
test/utils/PriorityQueueTest.hpp
test/domains/GridWorldTest.hpp
test/algorithms/AStarTest.hpp
test/algorithms/LssLrtaStarTest.hpp
src/utils/TimeMeasurement.hpp
test/experiment/TimeTerminationCheckerTest.hpp test/domains/TrafficTest.hpp)
add_executable(Metronome ${SOURCE_FILES})
add_executable(MetronomeTest ${TEST_FILES})
find_package(Boost 1.55.0 COMPONENTS thread system REQUIRED)
find_package(Cairo)
find_package(X11)
include_directories(
${Boost_INCLUDE_DIRS}
${Boost_LIBRARY_DIRS}
${CAIRO_INCLUDE_DIRS}
${X11_INCLUDE_DIRS}
dependencies
src
)
if (CAIRO_FOUND AND X11_FOUND)
# add_definitions(-DGRAPHICS)
endif()
target_link_libraries(Metronome ${Boost_LIBRARIES} ${CAIRO_LIBRARIES} ${X11_LIBRARIES})
target_link_libraries(MetronomeTest ${Boost_LIBRARIES} ${CAIRO_LIBRARIES} ${X11_LIBRARIES})