forked from EEPT-LAB/DipG-Seg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (36 loc) · 1.14 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
cmake_minimum_required(VERSION 3.0.2)
project(dipgseg)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -std=c++11 -O3")
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
sensor_msgs
)
find_package(PCL 1.2 REQUIRED)
find_package(Boost 1.50 REQUIRED)
catkin_package(
CATKIN_DEPENDS sensor_msgs
)
include_directories(
${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_INCLUDE_DESTINATION}
# include
${catkin_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/src/kitti_loader
${CMAKE_CURRENT_SOURCE_DIR}/src/include
${CMAKE_CURRENT_SOURCE_DIR}/src/utils
${PCL_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
SYSTEM ${OpenCV_INCLUDE_DIRS}
)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_library(kitti_loader_lib
src/kitti_loader/kitti_loader.cpp
)
find_package(OpenCV REQUIRED)
find_package(Boost 1.54 REQUIRED)
add_executable(offline_kitti_node src/offline_kitti_node.cpp)
target_link_libraries(offline_kitti_node ${catkin_LIBRARIES} ${OpenCV_LIBS} ${PCL_LIBRARIES} kitti_loader_lib)
add_executable(demo_node src/demo.cpp)
target_link_libraries(demo_node ${catkin_LIBRARIES} ${OpenCV_LIBS} ${PCL_LIBRARIES})