Skip to content

Commit

Permalink
Add project() to examples and remove hard-dependency on Ogre1 (#345)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Jan 7, 2022
1 parent 803bf23 commit 9af7abf
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ set(IGN_TRANSPORT_VER ${ignition-transport8_VERSION_MAJOR})

#--------------------------------------
# Find ignition-rendering
ign_find_package(ignition-rendering3 REQUIRED COMPONENTS ogre VERSION 3.5.0)
ign_find_package(ignition-rendering3 REQUIRED VERSION 3.5.0)
set(IGN_RENDERING_VER ${ignition-rendering3_VERSION_MAJOR})

#--------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions examples/plugin/custom_context_menu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(ignition-gui-custom-context-menu)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Expand Down
2 changes: 2 additions & 0 deletions examples/plugin/dialog_from_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(ignition-gui-dialog-from-plugin)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Expand Down
2 changes: 2 additions & 0 deletions examples/plugin/hello_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(ignition-gui-hello-plugin)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Expand Down
2 changes: 2 additions & 0 deletions examples/plugin/ign_components/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(ignition-gui-ign-components)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Expand Down
2 changes: 2 additions & 0 deletions examples/plugin/multiple_qml/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(ignition-gui-multiple-qml)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Expand Down
2 changes: 2 additions & 0 deletions examples/standalone/custom_drawer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(ignition-gui-custom-drawer)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Expand Down
2 changes: 2 additions & 0 deletions examples/standalone/dialogs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(ignition-gui-dialogs)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Expand Down
2 changes: 2 additions & 0 deletions examples/standalone/window/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)

project(ignition-gui-window)

if(POLICY CMP0100)
cmake_policy(SET CMP0100 NEW)
endif()
Expand Down

0 comments on commit 9af7abf

Please sign in to comment.