-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakeLists.txt
73 lines (58 loc) · 1.72 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
cmake_minimum_required(VERSION 3.0.2)
project(dataset_tools)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)
## System dependencies are found with CMake's conventions
find_package(
Boost
)
## 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
geometry_msgs
pcl_conversions
pcl_ros
roscpp
rospy
sensor_msgs
std_msgs
cv_bridge
image_transport
OpenCV
livox_ros_driver
)
find_package(OpenCV REQUIRED)
###################################
## catkin specific configuration ##
###################################
catkin_package(
DEPENDS
roscpp
std_msgs
sensor_msgs
geometry_msgs
pcl_conversions
pcl_ros
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
)
include_directories(/usr/local/include)
include_directories(/usr/local/include/opencv)
include_directories(/usr/local/include/opencv2)
include_directories(${OpenCV_INCLUDE_DIRS})
link_directories(/usr/local/lib)
set(ROS_LINK_FLAGS "-lopencv_core -lopencv_highgui -lopencv_legacy -lopencv_imgproc -lopencv_features2d")
add_executable(aviaFormatConvert src/aviaFormatConvert.cpp)
target_link_libraries(aviaFormatConvert ${catkin_LIBRARIES})
add_executable(horizonFormatConvert src/horizonFormatConvert.cpp)
target_link_libraries(horizonFormatConvert ${catkin_LIBRARIES})
add_executable(lidarsExtrinsicComp src/lidars_extrinsic_comp.cpp)
target_link_libraries(lidarsExtrinsicComp ${catkin_LIBRARIES})