-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
51 lines (44 loc) · 1.43 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 3.0.2)
project(dtsdf_ros)
add_compile_options(-std=c++14)
find_package(catkin REQUIRED
cv_bridge
geometry_msgs
image_transport
message_filters
pcl_ros
roscpp
sensor_msgs
tf2_eigen
tf2_ros)
set(InfiniTAM_BUILD_APPS OFF)
set(InfiniTAM_BUILD_TESTS OFF)
add_subdirectory(DirectionalTSDF)
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if your package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES dtsdf_ros
CATKIN_DEPENDS cv_bridge geometry_msgs image_transport message_filters pcl_ros roscpp sensor_msgs tf2_eigen tf2_ros
# DEPENDS system_lib
)
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
)
add_executable(dtsdf_node src/main.cpp src/Mapper.cpp)
set_target_properties(dtsdf_node PROPERTIES OUTPUT_NAME dtsdf_node PREFIX "")
add_dependencies(dtsdf_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(dtsdf_node
${catkin_LIBRARIES}
ITMLib::ITMLib
)