-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
47 lines (39 loc) · 957 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
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 2.8.3)
project(pandora)
find_package(catkin REQUIRED)
catkin_package(
CATKIN_DEPENDS)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
roscpp
roslib
sensor_msgs
)
find_package( Boost REQUIRED )
find_package( PCL REQUIRED COMPONENTS common )
find_package( OpenCV REQUIRED )
catkin_package()
set (CMAKE_CXX_FLAGS "-fPIC --std=c++11")
add_subdirectory(src/pandora)
include_directories(
.
src/pandora/include
src/pandora/src/Pandar40P/include
${Boost_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS}
)
add_executable(pandora_node
src/main.cc
)
target_link_libraries(pandora_node
Pandora
${OpenCV_LIBS}
${catkin_LIBRARIES}
)
install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch)
install(TARGETS pandora_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})