-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
71 lines (56 loc) · 1.33 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
cmake_minimum_required(VERSION 2.4.6)
project(organized_fast_mesh)
find_package(catkin REQUIRED COMPONENTS
roscpp
pcl_ros
rospy
std_msgs
sensor_msgs
mesh_msgs
lvr_ros
)
find_package(PCL 1.2 REQUIRED)
find_package(lvr REQUIRED)
add_definitions(${PCL_DEFINITIONS})
add_definitions(${lvr_DEFINITIONS})
include_directories(
include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${lvr_INCLUDE_DIRS}
)
link_directories(
${catkin_LIBRARY_DIRS}
${PCL_LIBRARY_DIRS}
${lvr_LIBRARY_DIRS}
)
add_service_files(
FILES
OrganizedFastMeshSrv.srv
)
generate_messages(
DEPENDENCIES
std_msgs
sensor_msgs
mesh_msgs
)
catkin_package(
CATKIN_DEPENDS roscpp std_msgs sensor_msgs pcl_ros lvr_ros
INCLUDE_DIRS include
DEPENDS PCL lvr
)
add_executable(organized_fast_mesh src/organized_fast_mesh.cpp src/organized_fast_mesh_generator.cpp)
target_link_libraries(organized_fast_mesh
${catkin_LIBRARIES}
${lvr_LIBRARIES}
${PCL_LIBRARIES}
)
add_dependencies(organized_fast_mesh ${catkin_EXPORTED_TARGETS} ${PROJECT_NAME}_generate_messages_cpp)
install(
DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(
TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)