-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (19 loc) · 883 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
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
find_package(ignition-cmake2 REQUIRED)
project(world_exporter_plugin)
#--------------------------------------
find_package(ignition-plugin1 REQUIRED COMPONENTS register)
set(IGN_PLUGIN_VER ${ignition-plugin1_VERSION_MAJOR})
#--------------------------------------
find_package(ignition-gazebo4 REQUIRED)
#--------------------------------------
# Find ignition-rendering
find_package(ignition-rendering4 REQUIRED)
set(IGN_RENDERING_VER ${ignition-rendering4_VERSION_MAJOR})
add_library(world_exporter_plugin SHARED WorldExporterPlugin.cc)
set_property(TARGET world_exporter_plugin PROPERTY CXX_STANDARD 17)
target_link_libraries(world_exporter_plugin
PRIVATE ignition-plugin${IGN_PLUGIN_VER}::ignition-plugin${IGN_PLUGIN_VER}
PRIVATE ignition-rendering4::ignition-rendering4
PRIVATE ignition-gazebo4::ignition-gazebo4
)