forked from Sadaku1993/velodyne_camera_calibration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
78 lines (67 loc) · 1.93 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
cmake_minimum_required(VERSION 2.8.3)
project(velodyne_camera_calibration)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
SET(CMAKE_CXX_FLAGS "-std=c++11 -O2 -g -Wall ${CMAKE_CXX_FLAGS}")
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_geometry
image_transport
message_filters
roscpp
rospy
sensor_msgs
pcl_ros
)
## System dependencies are found with CMake's conventions
find_package(Boost REQUIRED COMPONENTS system)
find_package(OpenCV 3 REQUIRED)
find_package(PCL 1.7 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAG "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES velodyne_camera_calibration
# CATKIN_DEPENDS cv_bridge image_transport message_filters roscpp rospy sensor_msgs
# DEPENDS system_lib
)
###########
## Build ##
###########
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(coloring_pointcloud src/coloring_pointcloud.cpp)
target_link_libraries(coloring_pointcloud
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_+IBRARIES}
)
add_executable(projection_pointcloud src/projection_pointcloud.cpp)
target_link_libraries(projection_pointcloud
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_+IBRARIES}
)
add_executable(sensor_fusion src/sensor_fusion.cpp)
target_link_libraries(sensor_fusion
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_+IBRARIES}
)
add_executable(camera_info_publisher src/camera_info_publisher.cpp)
target_link_libraries(camera_info_publisher
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${OpenCV_+IBRARIES}
)