-
Notifications
You must be signed in to change notification settings - Fork 47
/
CMakeLists.txt
59 lines (51 loc) · 1.43 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
cmake_minimum_required(VERSION 2.8.3)
project(frenet_ilqr_test)
## Compile as C++11, supported in ROS Kinetic and newer
add_definitions(-std=c++17 -w)
set(CMAKE_CXX_FLAGS " -Wall -Wextra ${CMAKE_CXX_FLAGS}")
set(CMAKE_BUILD_TYPE "Release")
set(catkin_deps
roscpp
grid_map_ros
tinyspline_ros
ros_viz_tools
)
find_package(catkin REQUIRED COMPONENTS
${catkin_deps}
)
find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(gflags REQUIRED)
catkin_package(
INCLUDE_DIRS src
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS ${catkin_deps}
DEPENDS OpenCV
)
include_directories(
src
${OpenCV_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
add_library(${PROJECT_NAME}
src/path/data_structure.cpp
src/path/reference_line.cpp
src/path/spline.cpp
src/path/free_space.cpp
src/path/tool.cpp
src/path/free_space.cpp
src/path/gflags.cpp
src/solver/solver.cpp
src/solver/problem_manager.cpp
src/path/path_problem_manager.cpp
)
target_link_libraries(${PROJECT_NAME} glog gflags ${catkin_LIBRARIES}
)
add_executable(${PROJECT_NAME}_demo
src/test/demo.cpp
src/test/Map.cpp
src/test/reference_line_processor.cpp)
target_link_libraries(${PROJECT_NAME}_demo
${PROJECT_NAME} ${OpenCV_LIBRARIES}
)