-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
84 lines (57 loc) · 2.42 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
project(Path_Planning)
cmake_minimum_required (VERSION 3.5)
add_definitions(-std=c++17)
set(CXX_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS, "${CXX_FLAGS}")
include_directories( src/ src/Eigen-3.3 src/test )
set(sources src/main.cpp
src/spline.cpp
src/spline.hpp
src/path_planner.cpp
src/path_planner.hpp
src/behavior_layer.cpp
src/behavior_layer.hpp
src/prediction_layer.cpp
src/prediction_layer.hpp
src/localization_layer.cpp
src/localization_layer.hpp
src/car.hpp
src/car.cpp
src/fsm.hpp
src/fsm.cpp
src/path_planner_config.cpp
src/path_planner_config.hpp
src/trajectory_layer.cpp
src/trajectory_layer.hpp
src/helpers.cpp
src/helpers.hpp
src/lrucache.hpp
src/circular_unsigned_double_t.cpp
src/circular_unsigned_double_t.hpp
src/cost_functions.hpp)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
include_directories(/usr/local/include)
include_directories(/usr/local/opt/openssl/include)
link_directories(/usr/local/lib)
link_directories(/usr/local/opt/openssl/lib)
link_directories(/usr/local/Cellar/libuv/1.11.0/lib)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_library(Catch INTERFACE)
add_executable( path_planning_test
src/lrucache.hpp
src/spline.hpp src/spline.cpp
src/test/fsm_test.cpp src/fsm.hpp src/fsm.cpp
src/test/helpers_test.cpp src/helpers.hpp src/helpers.cpp
src/test/car_test.cpp src/car.hpp src/car.cpp
src/test/path_planner_config_test.cpp src/path_planner_config.cpp src/path_planner_config.hpp
src/test/localization_layer_test.cpp src/localization_layer.cpp src/localization_layer.hpp
src/test/behavior_layer_test.cpp src/behavior_layer.cpp src/behavior_layer.hpp
src/test/prediction_layer_test.cpp src/prediction_layer.cpp src/prediction_layer.hpp
src/test/circular_unsigned_double_t_test.cpp src/circular_unsigned_double_t.hpp src/circular_unsigned_double_t.cpp
src/test/temp_file.cpp src/test/temp_file.hpp
src/test/test.cpp)
target_link_libraries(path_planning_test Catch)
add_executable(path_planning ${sources})
enable_testing()
add_test( NAME path_planning_test COMMAND path_planning_test )
target_link_libraries(path_planning z ssl uv uWS)