forked from Vince-vd/bluerov2_ignition
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
40 lines (32 loc) · 1006 Bytes
/
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
cmake_minimum_required(VERSION 3.12.2)
project(gazebo_bluerov2)
# add dependencies
include(cmake/CPM.cmake)
find_package(ament_cmake_auto QUIET)
if(${ament_cmake_auto_FOUND})
message("Building ${PROJECT_NAME} with ament_cmake_auto")
ament_auto_find_build_dependencies()
ament_auto_package(INSTALL_TO_SHARE models worlds)
endif()
# --------------------------------------------------------------------------- #
# Find gz-sim and dependencies.
find_package(gz-cmake3 REQUIRED)
set(GZ_CMAKE_VER ${gz-cmake3_VERSION_MAJOR})
CPMAddPackage("gh:blksail-edu/ardupilot_gazebo#ab4ddb8")
if(${ardupilot_gazebo_ADDED})
# build ardupilot_gazebo
message("Successfully added ardupilot_gazebo")
endif()
add_subdirectory(src)
# --------------------------------------------------------------------------- #
set(CMAKE_BINARY_DIR ${PROJECT_SOURCE_DIR}/bin)
install(
DIRECTORY
models/
DESTINATION share/${PROJECT_NAME}/models
)
install(
DIRECTORY
worlds/
DESTINATION share/${PROJECT_NAME}/worlds
)