-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (37 loc) · 1.25 KB
/
CMakeLists.txt
File metadata and controls
46 lines (37 loc) · 1.25 KB
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
# ------------------------------------------------------------------------------
# A Modular Optimization framework for Localization and mApping
# (MOLA)
#
# Copyright (C) 2018-2023, Jose Luis Blanco-Claraco, contributors (AUTHORS.md)
# All rights reserved.
# Released under BSD 3-clause license. See LICENSE file
# ------------------------------------------------------------------------------
# Minimum CMake vesion: limited by CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
cmake_minimum_required(VERSION 3.5)
if("$ENV{ROS_VERSION}" STREQUAL "2")
set(DETECTED_ROS2 TRUE)
endif()
project(mola_test_datasets LANGUAGES CXX)
# Instrumental lib:
add_library(${PROJECT_NAME} INTERFACE)
# Install files:
install(DIRECTORY
datasets
DESTINATION
share/${PROJECT_NAME}
)
# -----------------------------------------------------------------------------
# ROS2
# -----------------------------------------------------------------------------
if(DETECTED_ROS2)
# find dependencies
find_package(ament_cmake REQUIRED)
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()
ament_package()
endif()
# Silent cmake warning:
set(dummy ${CMAKE_EXPORT_COMPILE_COMMANDS})
unset(dummy)