-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
60 lines (50 loc) · 1.56 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
cmake_minimum_required(VERSION 3.14)
project(loam_feature_localization)
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()
find_package(rclcpp REQUIRED)
find_package(rclcpp_components REQUIRED)
find_package(PCL REQUIRED)
find_package(pcl_conversions REQUIRED)
find_package(pcl_msgs REQUIRED)
find_package(OpenCV REQUIRED)
find_package(cv_bridge REQUIRED)
find_package(tf2 REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(GTSAM REQUIRED)
find_package(OpenMP REQUIRED)
include_directories(
${PCL_INCLUDE_DIRS}
${pcl_conversions_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${GTSAM_INCLUDE_DIRS}
${OpenMP_INCLUDE_DIRS}
${cv_bridge_INCLUDE_DIRS})
set(LOAM_FEATURE_LOCALIZATION_SRC
src/loam_feature_localization.cpp
src/utils.cpp)
set(LOAM_FEATURE_LOCALIZATION_HEADERS
include/loam_feature_localization/loam_feature_localization.hpp
include/loam_feature_localization/utils.hpp)
ament_auto_add_library(${PROJECT_NAME} SHARED
${LOAM_FEATURE_LOCALIZATION_HEADERS}
${LOAM_FEATURE_LOCALIZATION_SRC})
target_link_libraries(${PROJECT_NAME}
${PCL_LIBRARIES}
${pcl_conversions_LIBRARIES}
${OpenCV_LIBRARIES}
gtsam
${OpenMP_LIBRARIES}
${cv_bridge_LIBRARIES})
rclcpp_components_register_node(${PROJECT_NAME}
PLUGIN "loam_feature_localization::LoamFeatureLocalization"
EXECUTABLE ${PROJECT_NAME}_node
)
#if(BUILD_TESTING)
#
#endif()
ament_auto_package(
INSTALL_TO_SHARE
launch
config
)