This repository has been archived by the owner on Dec 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (45 loc) · 2.18 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
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
#============================================================================
# Initialize the project
#============================================================================
project(ignition-dome VERSION 1.0.1)
#============================================================================
# Find ignition-cmake
#============================================================================
# If you get an error at this line, you need to install ignition-cmake
find_package(ignition-cmake2 2.10.0 REQUIRED)
#============================================================================
# Configure the project
#============================================================================
ign_configure_project(VERSION_SUFFIX)
# all list of dome packages
ign_find_package(ignition-common3 REQUIRED VERSION 3.14.0)
ign_find_package(ignition-fuel_tools5 REQUIRED VERSION 5.2.0)
ign_find_package(ignition-gazebo4 REQUIRED VERSION 4.14.0)
ign_find_package(ignition-gui4 REQUIRED VERSION 4.6.0)
ign_find_package(ignition-launch3 REQUIRED VERSION 3.4.2)
ign_find_package(ignition-math6 REQUIRED VERSION 6.9.2)
ign_find_package(ignition-msgs6 REQUIRED VERSION 6.6.1)
ign_find_package(ignition-physics3 REQUIRED VERSION 3.4.1)
ign_find_package(ignition-plugin1 REQUIRED VERSION 1.2.1)
ign_find_package(ignition-rendering4 REQUIRED VERSION 4.9.1)
ign_find_package(ignition-sensors4 REQUIRED VERSION 4.3.0)
ign_find_package(ignition-transport9 REQUIRED VERSION 9.1.2)
ign_find_package(sdformat10 REQUIRED VERSION 10.7.0)
if(build_warnings)
set(all_warnings " CONFIGURATION WARNINGS:")
foreach (msg ${build_warnings})
ign_string_append(all_warnings " -- ${msg}" DELIM "\n")
endforeach ()
message(WARNING "${all_warnings}")
endif (build_warnings)
if(build_errors)
message(SEND_ERROR "-- BUILD ERRORS: These must be resolved before compiling.")
foreach(msg ${build_errors})
message(SEND_ERROR "-- ${msg}")
endforeach()
message(SEND_ERROR "-- END BUILD ERRORS\n")
set(error_str "Errors encountered in build. Please see BUILD ERRORS above.")
message(FATAL_ERROR "${error_str}")
endif()
install(DIRECTORY gazebodistro DESTINATION ${IGN_DATA_INSTALL_DIR})