-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathCMakeLists.txt
44 lines (36 loc) · 1.23 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
cmake_minimum_required(VERSION 3.5.0)
project(open3d_conversions)
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
)
find_package(Eigen3 REQUIRED)
find_package(Open3D REQUIRED)
catkin_package(
INCLUDE_DIRS include
LIBRARIES open3d_conversions
CATKIN_DEPENDS roscpp sensor_msgs
DEPENDS EIGEN3 Open3D
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${Open3D_INCLUDE_DIRS}
)
# C++ library
add_library(open3d_conversions src/open3d_conversions.cpp)
add_dependencies(open3d_conversions ${open3d_conversions_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(open3d_conversions ${catkin_LIBRARIES} ${Open3D_LIBRARIES})
# Install
install(TARGETS open3d_conversions
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION})
install(DIRECTORY include/open3d_conversions/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})
# Tests
if (CATKIN_ENABLE_TESTING)
catkin_add_gtest(test_open3d_conversions test/test_open3d_conversions.cpp)
target_link_libraries(test_open3d_conversions open3d_conversions ${catkin_LIBRARIES} ${Open3D_LIBRARIES})
endif()