-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
83 lines (67 loc) · 1.94 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
79
80
81
82
83
cmake_minimum_required(VERSION 3.8)
project(slam_debug)
set(CMAKE_CXX_STANDARD 17)
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
# Stop build warnings related to missing IO components
set(PCL_FIND_QUIETLY ON)
## System dependencies are found with CMake's conventions
find_package(ament_cmake REQUIRED)
find_package(GTSAM REQUIRED)
#find_package(PCL REQUIRED COMPONENTS common io filters kdtree)
#find_package(pcl_conversions REQUIRED)
find_package(rclcpp REQUIRED)
###########
## Build ##
###########
include_directories(
include
SYSTEM ${EIGEN3_INCLUDE_DIR}
)
########################################
# VILENS SLAM ROS node
add_executable(simple_slam src/simple_slam/simple_slam.cpp src/simple_slam/sission_data.cpp)
ament_target_dependencies(simple_slam)
target_link_libraries(simple_slam gtsam)
#############
## Install ##
#############
#install(PROGRAMS
# python/slam_debug/delay_camera.py
# DESTINATION lib/${PROJECT_NAME}
#)
## Mark libraries for installation
#install(TARGETS
# DESTINATION lib
#)
install(TARGETS
simple_slam
DESTINATION lib/${PROJECT_NAME}
)
## Mark cpp header files for installation
install(DIRECTORY include/
DESTINATION include
FILES_MATCHING PATTERN "*.hpp" PATTERN "*.h")
#install(
# DIRECTORY config launch processing_scripts
# DESTINATION share/${PROJECT_NAME}
#)
#install(
# DIRECTORY config launch processing_scripts
# DESTINATION share/${PROJECT_NAME}
# FILES_MATCHING PATTERN "*procman.pmd"
# PATTERN "*.yaml"
# PATTERN "*.xml"
# PATTERN "*.perspective"
# PATTERN "*.rviz"
# PATTERN "*.py"
# PATTERN "*.launch"
#)
ament_export_include_directories(include)
#ament_export_libraries()
#ament_export_dependencies()
ament_package()