-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
67 lines (56 loc) · 1.76 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
cmake_minimum_required(VERSION 3.0.2)
project(lattice_path_planner)
set(CMAKE_BUILD_TYPE Release)
message(STATUS "BUILD TYPE: " ${CMAKE_BUILD_TYPE})
add_compile_options(-std=c++14)
# Compile ROS package
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall")
# set(CMAKE_CXX_CLANG_TIDY
# clang-tidy;
# -header-filter=${PROJECT_SOURCE_DIR}/lattice_path_planner;
# -warnings-as-errors=*;
# )
find_package(catkin REQUIRED COMPONENTS
costmap_2d
geometry_msgs
nav_core
nav_msgs
pluginlib
tf2_geometry_msgs
tf2_ros
)
# Glog
find_package(glog REQUIRED)
catkin_package(
INCLUDE_DIRS ${PROJECT_SOURCE_DIR}
LIBRARIES lattice_path_planner
CATKIN_DEPENDS
costmap_2d
geometry_msgs
nav_core
nav_msgs
pluginlib
tf2_geometry_msgs
tf2_ros
)
include_directories(
${PROJECT_SOURCE_DIR}
third_party
${catkin_INCLUDE_DIRS}
)
add_library(lattice_path_planner
lattice_path_planner/common/breadth_first_search.cc
lattice_path_planner/common/footprint_helper.cc
lattice_path_planner/common/heap.cc
lattice_path_planner/common/utils.cc
lattice_path_planner/grid_search/grid_search.cc
lattice_path_planner/lattice_a_star/lattice_a_star.cc
lattice_path_planner/primitive_generator/primitive_generator.cc
lattice_path_planner/lattice_path_planner_ros.cc
lattice_path_planner/path_visualizer.cc
)
target_link_libraries(lattice_path_planner ${catkin_LIBRARIES} glog::glog)
add_executable(lattice_path_planner_test lattice_path_planner/lattice_path_planner_ros_test.cc)
target_link_libraries(lattice_path_planner_test lattice_path_planner ${catkin_LIBRARIES})
add_executable(lattice_path_planner_tf_broadcaster lattice_path_planner/tf_broadcaster.cc)
target_link_libraries(lattice_path_planner_tf_broadcaster ${catkin_LIBRARIES} glog::glog)