-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (38 loc) · 1.28 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
cmake_minimum_required(VERSION 3.5)
project(PathPlanning)
add_definitions(-std=c++11)
set(CXX_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS "${CXX_FLAGS}")
include_directories(include)
include_directories(lib)
###############################################################################
## Build project
###############################################################################
set(sources
src/main.cpp
src/helpers.cpp
src/perception.cpp
src/planner.cpp
src/controller.cpp
src/helpers.h
src/controller.h
src/planner.h
src/perception.h)
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*/lib)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_executable(path_planning ${sources})
target_link_libraries(path_planning z ssl uv uWS)
###############################################################################
## Testing with Catch2
###############################################################################
set(test_sources
test/main_test.cpp
test/helpers_test.cpp
src/helpers.cpp
src/helpers.h )
add_executable(tests ${test_sources})