-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
37 lines (28 loc) · 858 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(pcl_binvox)
# Use C++ 11
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions("-std=c++11")
endif()
find_package(catkin REQUIRED COMPONENTS
cmake_modules
pcl_ros # pcl_ros must appear before pcl_conversions
pcl_conversions # or the wrong headers are used.
)
find_package(PCL 1.6 REQUIRED)
catkin_package(
INCLUDE_DIRS ${catkin_INCLUDE_DIRS} #include
LIBRARIES ${PROJECT_NAME}
#DEPENDS
)
include_directories(
#include
${INCLUDE_DIRECTORIES}
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS})
link_directories(${LINK_DIRECTORIES} ${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable(binvox2pcd src/binvox2pcd.cpp)
target_link_libraries(binvox2pcd ${catkin_LIBRARIES})
add_executable(pcd2binvox src/pcd2binvox.cpp)
target_link_libraries(pcd2binvox ${catkin_LIBRARIES})