-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (35 loc) · 897 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
35
36
37
38
39
40
41
42
43
44
cmake_minimum_required(VERSION 3.0.2)
project(laser_filter)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
)
find_package(Boost COMPONENTS program_options REQUIRED)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES laser_filter
CATKIN_DEPENDS sensor_msgs
# DEPENDS system_lib
)
include_directories(
# include
${catkin_INCLUDE_DIRS}
)
add_executable(cone_filter
src/cone_filter.cpp
)
add_dependencies(cone_filter
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS}
)
target_link_libraries(cone_filter
${catkin_LIBRARIES}
${Boost_LIBRARIES}
)
## Mark executables for installation
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_executables.html
install(TARGETS cone_filter
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)