-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
64 lines (50 loc) · 1.28 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
cmake_minimum_required(VERSION 3.5)
project(abhiswarming)
# --------------------------------------------------------------------------- #
# Find dependencies.
find_package(ament_cmake REQUIRED)
# --------------------------------------------------------------------------- #
# Install.
# Install project launch files.
install(
DIRECTORY
launch/
DESTINATION share/${PROJECT_NAME}/launch
)
# Install project configuration files.
install(
DIRECTORY
config/
DESTINATION share/${PROJECT_NAME}/config
)
# Install model files
install(
DIRECTORY
models/
DESTINATION share/${PROJECT_NAME}/models
)
# Install world files
install(
DIRECTORY
worlds/
DESTINATION share/${PROJECT_NAME}/worlds
)
### Enable if necessary
# # Install project rviz files.
# install(
# DIRECTORY
# rviz/
# DESTINATION share/${PROJECT_NAME}/rviz
# )
# --------------------------------------------------------------------------- #
# Build tests.
if(BUILD_TESTING)
# Override default flake8 configuration.
set(ament_cmake_flake8_CONFIG_FILE ${CMAKE_SOURCE_DIR}/.flake8)
# Add linters.
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()
# --------------------------------------------------------------------------- #
# Call last.
ament_package()