-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
84 lines (72 loc) · 1.61 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
cmake_minimum_required(VERSION 3.0.2)
project(fre_row_navigation)
## Compile as C++17
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
if(COMPILER_SUPPORTS_CXX17)
set(CMAKE_CXX_FLAGS "-std=c++17")
else()
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++17 support.")
endif()
## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
nav_msgs
genmsg
actionlib
actionlib_msgs
visualization_msgs
laser_geometry
tf2
tf2_ros
pcl_ros
dynamic_reconfigure
)
## System dependencies are found with CMake's conventions
find_package(PCL REQUIRED)
## Generate actions in the 'action' folder
add_action_files(
FILES
CrawlRow.action
)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
actionlib_msgs
)
generate_dynamic_reconfigure_options(
cfg/crawl_row_param.cfg
)
###################################
## catkin specific configuration ##
###################################
catkin_package(
INCLUDE_DIRS include
# LIBRARIES fre_row_navigation
CATKIN_DEPENDS roscpp sensor_msgs visualization_msgs
# DEPENDS system_lib
)
###########
## Build ##
###########
include_directories(
include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
add_executable(crawl_row_node
src/crawl_row_node.cpp
src/pid.cpp
src/rectangle.cpp
src/cone.cpp
)
add_dependencies(crawl_row_node
${${PROJECT_NAME}_EXPORTED_TARGETS}
${PROJECT_NAME}_gencfg
${catkin_EXPORTED_TARGETS}
)
target_link_libraries(crawl_row_node
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)