-
Notifications
You must be signed in to change notification settings - Fork 75
/
CMakeLists.txt
executable file
·70 lines (56 loc) · 2 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
cmake_minimum_required(VERSION 3.0.2)
project(patchwork)
add_compile_options(-std=c++17)
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
message_generation
pcl_ros
roscpp
rospy
std_msgs
sensor_msgs
)
add_message_files(
FILES
node.msg
ground_estimate.msg
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
sensor_msgs
)
find_package(PCL 1.7 REQUIRED)
find_package(Boost 1.54 REQUIRED)
catkin_package(
INCLUDE_DIRS
LIBRARIES
CATKIN_DEPENDS geometry_msgs message_runtime roscpp rospy sensor_msgs std_msgs
)
option(USE_SYSTEM_TBB "Use system pre-installed oneAPI/tbb" OFF)
include(3rdparty/find_dependencies.cmake)
include_directories(
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
include
)
add_executable(ros_kitti nodes/ros_kitti.cpp)
target_link_libraries(ros_kitti ${catkin_LIBRARIES} ${PCL_LIBRARIES} TBB::tbb)
add_dependencies(ros_kitti patchwork_generate_messages_cpp)
add_executable(ros_kitti_publisher nodes/ros_kitti_publisher.cpp)
target_link_libraries(ros_kitti_publisher ${catkin_LIBRARIES} ${PCL_LIBRARIES} TBB::tbb)
add_dependencies(ros_kitti_publisher patchwork_generate_messages_cpp)
add_executable(pub_for_legoloam nodes/pub_for_legoloam.cpp)
target_link_libraries(pub_for_legoloam ${catkin_LIBRARIES} ${PCL_LIBRARIES} TBB::tbb)
add_dependencies(pub_for_legoloam patchwork_generate_messages_cpp)
add_executable(offline_kitti nodes/offline_kitti.cpp)
target_link_libraries(offline_kitti ${catkin_LIBRARIES} ${PCL_LIBRARIES} stdc++fs TBB::tbb)
add_dependencies(offline_kitti patchwork_generate_messages_cpp)
add_executable(offline_own_data nodes/offline_own_data.cpp)
target_link_libraries(offline_own_data ${catkin_LIBRARIES} ${PCL_LIBRARIES} TBB::tbb)
add_dependencies(offline_own_data patchwork_generate_messages_cpp)