-
Notifications
You must be signed in to change notification settings - Fork 31
/
CMakeLists.txt
60 lines (49 loc) · 1.05 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
cmake_minimum_required(VERSION 3.0.2)
project(travel)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++17")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -pthread")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
roslaunch
pcl_conversions
pcl_ros
cv_bridge
geometry_msgs
sensor_msgs
std_msgs
message_generation
)
find_package(PCL REQUIRED)
find_package(Boost 1.54 REQUIRED)
add_message_files(
FILES
node.msg
)
generate_messages(
DEPENDENCIES
sensor_msgs
geometry_msgs
std_msgs
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES travel
CATKIN_DEPENDS roscpp std_msgs message_runtime
)
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
link_directories(${PCL_LIBRARY_DIRS})
add_executable(${PROJECT_NAME}_main src/main.cpp)
target_link_libraries(${PROJECT_NAME}_main
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)