2023-02-22 23:11:49 -08:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
project(rtabmap_examples)
|
|
|
|
|
|
|
|
|
|
find_package(ament_cmake REQUIRED)
|
|
|
|
|
|
2024-11-30 17:28:16 -08:00
|
|
|
install(DIRECTORY launch config
|
2023-02-22 23:11:49 -08:00
|
|
|
DESTINATION share/${PROJECT_NAME}
|
|
|
|
|
)
|
|
|
|
|
|
2026-10-10 12:23:49 -07:00
|
|
|
if(BUILD_TESTING)
|
|
|
|
|
find_package(ament_cmake_pytest REQUIRED)
|
|
|
|
|
# rtabmap_launch's launch file test, on this package's installed launch files: each
|
|
|
|
|
# dry-run with each of its switches; nothing is started, so it needs no DDS domain of its
|
|
|
|
|
# own. Run from where rtabmap_launch installed it: no pytest cache written there.
|
|
|
|
|
find_package(rtabmap_launch REQUIRED)
|
|
|
|
|
ament_add_pytest_test(test_launch_files ${rtabmap_launch_DIR}/../test/test_launch_files.py
|
|
|
|
|
ENV RTABMAP_LAUNCH_TEST_PACKAGE=${PROJECT_NAME} "PYTEST_ADDOPTS=-p no:cacheprovider"
|
|
|
|
|
TIMEOUT 900)
|
|
|
|
|
endif()
|
|
|
|
|
|
2023-06-17 18:17:20 -07:00
|
|
|
ament_package()
|