-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
57 lines (46 loc) · 1.92 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
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
#============================================================================
# Initialize the project
#============================================================================
project(gz-jetty VERSION 1.0.0)
#============================================================================
# Find gz-cmake
#============================================================================
# If you get an error at this line, you need to install gz-cmake
find_package(gz-cmake4 REQUIRED)
#============================================================================
# Configure the project
#============================================================================
gz_configure_project(VERSION_SUFFIX)
# all list of jetty packages
gz_find_package(gz-common6 REQUIRED)
gz_find_package(gz-fuel_tools10 REQUIRED)
gz_find_package(gz-sim9 REQUIRED)
gz_find_package(gz-gui9 REQUIRED)
gz_find_package(gz-launch8 REQUIRED)
gz_find_package(gz-math8 REQUIRED)
gz_find_package(gz-msgs11 REQUIRED)
gz_find_package(gz-physics8 REQUIRED)
gz_find_package(gz-plugin3 REQUIRED)
gz_find_package(gz-rendering9 REQUIRED)
gz_find_package(gz-sensors9 REQUIRED)
gz_find_package(gz-transport14 REQUIRED)
gz_find_package(gz-utils3 REQUIRED)
gz_find_package(sdformat15 REQUIRED)
if(build_warnings)
set(all_warnings " CONFIGURATION WARNINGS:")
foreach (msg ${build_warnings})
gz_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(FILES release_notes.md DESTINATION ${GZ_DATA_INSTALL_DIR})