forked from strands-project/strands_3d_mapping
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
77 lines (56 loc) · 1.92 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
cmake_minimum_required(VERSION 2.8.3)
project(cloud_merge)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS mongodb_store rospy roscpp actionlib actionlib_msgs std_msgs sensor_msgs tf pcl_ros semantic_map image_geometry image_transport qt_build)
set(CMAKE_CXX_FLAGS "-O4 -fPIC -std=c++0x -fpermissive ${CMAKE_CXX_FLAGS}")
find_package(PCL 1.7 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
rosbuild_prepare_qt4(QtCore QtXml)
add_action_files(
DIRECTORY
action
FILES
Sweep.action
)
generate_messages(DEPENDENCIES actionlib_msgs sensor_msgs)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS mongodb_store semantic_map std_msgs sensor_msgs tf pcl_ros image_geometry image_transport qt_build actionlib actionlib_msgs rospy
)
include_directories(include
${catkin_INCLUDE_DIRS}
)
set(HDRS
include/cloud_merge/cloud_merge.h
include/cloud_merge/cloud_merge_node.h)
set(SRCS
src/cloud_merge.cpp
src/cloud_merge_node.cpp)
add_executable(cloud_merge ${HDRS} ${SRCS} src/main.cpp)
add_dependencies(cloud_merge ${catkin_EXPORTED_TARGETS})
target_link_libraries(cloud_merge
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${QT_LIBRARIES}
${Boost_LIBRARIES}
)
############################# INSTALL TARGETS
install(TARGETS cloud_merge
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(PROGRAMS
scripts/do_sweep.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY include/cloud_merge/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)