-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
51 lines (39 loc) · 1.28 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
cmake_minimum_required(VERSION 2.8.3)
project(feature_extraction)
set(catkin_components pcl_conversions pcl_ros roscpp rospy sensor_msgs std_msgs)
find_package(catkin REQUIRED COMPONENTS ${catkin_components})
###################################
## catkin specific configuration ##
###################################
catkin_package(
INCLUDE_DIRS include
LIBRARIES feature_extraction
CATKIN_DEPENDS ${catkin_components}
)
###########
## Build ##
###########
include_directories(include ${catkin_INCLUDE_DIRS})
add_library(feature_extraction
src/feature_extraction_node.cpp
include/feature_extraction/feature_extraction_node.h
)
add_executable(feature_extraction_node src/feature_extraction_node.cpp include/${PROJECT_NAME}/feature_extraction_node.h)
target_link_libraries(feature_extraction_node ${catkin_LIBRARIES})
#############
## Install ##
#############
install(DIRECTORY
launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
#############
## Testing ##
#############
## Add gtest based cpp test target and link libraries
# catkin_add_gtest(${PROJECT_NAME}-test test/test_my_pcl_tutorial.cpp)
# if(TARGET ${PROJECT_NAME}-test)
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
# endif()
## Add folders to be run by python nosetests
# catkin_add_nosetests(test)