From 570385442546578c4216837950fcad889fc9e2e0 Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Thu, 6 Jan 2022 17:02:23 -0800 Subject: [PATCH] Add project() call to examples Signed-off-by: Louise Poubel --- examples/standalone/custom_server/CMakeLists.txt | 2 ++ examples/standalone/each_performance/CMakeLists.txt | 2 ++ examples/standalone/external_ecm/CMakeLists.txt | 2 ++ examples/standalone/joy_to_twist/CMakeLists.txt | 2 ++ examples/standalone/joystick/CMakeLists.txt | 2 ++ examples/standalone/keyboard/CMakeLists.txt | 2 ++ examples/standalone/marker/CMakeLists.txt | 2 ++ examples/standalone/scene_requester/CMakeLists.txt | 2 ++ 8 files changed, 16 insertions(+) diff --git a/examples/standalone/custom_server/CMakeLists.txt b/examples/standalone/custom_server/CMakeLists.txt index fb8597cf2b..f41f02265f 100644 --- a/examples/standalone/custom_server/CMakeLists.txt +++ b/examples/standalone/custom_server/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) +project(ign-gazebo-custom-server) + if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") find_package(ignition-gazebo3 REQUIRED) set(IGN_GAZEBO_VER ${ignition-gazebo3_VERSION_MAJOR}) diff --git a/examples/standalone/each_performance/CMakeLists.txt b/examples/standalone/each_performance/CMakeLists.txt index 65cd94c0d2..c7265cebec 100644 --- a/examples/standalone/each_performance/CMakeLists.txt +++ b/examples/standalone/each_performance/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) +project(ign-gazebo-each-performance) + find_package(ignition-gazebo3 QUIET REQUIRED) add_executable(each each.cc) diff --git a/examples/standalone/external_ecm/CMakeLists.txt b/examples/standalone/external_ecm/CMakeLists.txt index 7ebe46521a..bfde6ebb72 100644 --- a/examples/standalone/external_ecm/CMakeLists.txt +++ b/examples/standalone/external_ecm/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) +project(ign-gazebo-external-ecm) + find_package(ignition-gazebo3 REQUIRED) add_executable(external_ecm external_ecm.cc) diff --git a/examples/standalone/joy_to_twist/CMakeLists.txt b/examples/standalone/joy_to_twist/CMakeLists.txt index cd91c38192..449b8870ea 100644 --- a/examples/standalone/joy_to_twist/CMakeLists.txt +++ b/examples/standalone/joy_to_twist/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) +project(ign-gazebo-joy-to-twist) + find_package(ignition-transport8 QUIET REQUIRED OPTIONAL_COMPONENTS log) set(IGN_TRANSPORT_VER ${ignition-transport8_VERSION_MAJOR}) diff --git a/examples/standalone/joystick/CMakeLists.txt b/examples/standalone/joystick/CMakeLists.txt index f096611a9c..46e4f99707 100644 --- a/examples/standalone/joystick/CMakeLists.txt +++ b/examples/standalone/joystick/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) # joystick currently works only on linux +project(ignition-gazebo-joystick) + if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") find_package(ignition-transport8 QUIET REQUIRED OPTIONAL_COMPONENTS log) set(IGN_TRANSPORT_VER ${ignition-transport8_VERSION_MAJOR}) diff --git a/examples/standalone/keyboard/CMakeLists.txt b/examples/standalone/keyboard/CMakeLists.txt index 900346334b..819eb7fb30 100644 --- a/examples/standalone/keyboard/CMakeLists.txt +++ b/examples/standalone/keyboard/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) +project(ign-gazebo-keyboard) + if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") find_package(ignition-transport8 QUIET REQUIRED OPTIONAL_COMPONENTS log) set(IGN_TRANSPORT_VER ${ignition-transport8_VERSION_MAJOR}) diff --git a/examples/standalone/marker/CMakeLists.txt b/examples/standalone/marker/CMakeLists.txt index f220f57e44..b1117415e1 100644 --- a/examples/standalone/marker/CMakeLists.txt +++ b/examples/standalone/marker/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) +project(ignition-gazebo-marker) + if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") find_package(ignition-transport8 QUIET REQUIRED OPTIONAL_COMPONENTS log) set(IGN_TRANSPORT_VER ${ignition-transport8_VERSION_MAJOR}) diff --git a/examples/standalone/scene_requester/CMakeLists.txt b/examples/standalone/scene_requester/CMakeLists.txt index 67cf7dba42..77082c0a1b 100644 --- a/examples/standalone/scene_requester/CMakeLists.txt +++ b/examples/standalone/scene_requester/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) +project(ign-gazebo-scene-requester) + find_package(ignition-transport8 QUIET REQUIRED OPTIONAL_COMPONENTS log) set(IGN_TRANSPORT_VER ${ignition-transport8_VERSION_MAJOR})