-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
34 lines (23 loc) · 868 Bytes
/
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
project(Path_Planning)
cmake_minimum_required (VERSION 3.5)
add_definitions(-std=c++11)
set(CXX_FLAGS "-Wall -g")
set(CMAKE_CXX_FLAGS, "${CXX_FLAGS}")
set(sources src/main.cpp \\
src/helpers.cpp \\
src/HighwayMap.cpp \\
src/Vehicle.cpp \\
src/TrajectoryGenerator.cpp \\
src/spline.cpp)
include_directories(src/Eigen-3.3)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
include_directories(/opt/local/include)
include_directories(/usr/local/include)
include_directories(/usr/local/opt/openssl/include)
link_directories(/opt/local/lib)
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_executable(path_planning ${sources})
target_link_libraries(path_planning z ssl uv uWS)