From 8174ba256e9c1c32d9e8bcbebcd64e1682d61912 Mon Sep 17 00:00:00 2001 From: methylDragon Date: Wed, 22 Jun 2022 12:11:43 -0700 Subject: [PATCH] CMake Project Rename : Update install rules (#7) * Flexibly install ignition or gz Signed-off-by: methylDragon * Use wildcard to enable flexible installs Signed-off-by: methylDragon * Update release tests Signed-off-by: methylDragon --- ubuntu/debian/ignition-plugin-cli.install | 2 +- ubuntu/debian/libignition-plugin-dev.install | 8 ++++---- ubuntu/debian/tests/build | 17 ++++++++--------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/ubuntu/debian/ignition-plugin-cli.install b/ubuntu/debian/ignition-plugin-cli.install index 5c6c642..3cc651b 100644 --- a/ubuntu/debian/ignition-plugin-cli.install +++ b/ubuntu/debian/ignition-plugin-cli.install @@ -1,2 +1,2 @@ # Needs to be migrated to libexec -usr/libexec/ignition/ +usr/libexec/*/ diff --git a/ubuntu/debian/libignition-plugin-dev.install b/ubuntu/debian/libignition-plugin-dev.install index 92866d6..1f8f0c6 100644 --- a/ubuntu/debian/libignition-plugin-dev.install +++ b/ubuntu/debian/libignition-plugin-dev.install @@ -1,7 +1,7 @@ usr/include/* usr/lib/*/*.so usr/lib/*/pkgconfig/*.pc -usr/lib/*/cmake/ignition-plugin*/* -usr/lib/ruby/ignition/* -usr/share/ignition/* -usr/share/ignition/*/* +usr/lib/*/cmake/*-plugin*/* +usr/lib/ruby/*/* +usr/share/*/* +usr/share/*/*/* diff --git a/ubuntu/debian/tests/build b/ubuntu/debian/tests/build index 05d4522..350fda9 100755 --- a/ubuntu/debian/tests/build +++ b/ubuntu/debian/tests/build @@ -14,21 +14,21 @@ cmake_minimum_required(VERSION 3.5.1 FATAL_ERROR) project(example) -# Find the ignition-plugin2 library -find_package(ignition-plugin2 REQUIRED COMPONENTS all) -#include_directories(\${ignition-plugin2_INCLUDE_DIRS}) +# Find the gz-plugin2 library +find_package(gz-plugin2 REQUIRED COMPONENTS all) +#include_directories(\${gz-plugin2_INCLUDE_DIRS}) add_executable(plugin_test plugin_test.cc) target_link_libraries(plugin_test PRIVATE - ignition-plugin2::register - ignition-plugin2::loader + gz-plugin2::register + gz-plugin2::loader ) EOF cat < plugin_test.cc -#include -#include +#include +#include class Drive { @@ -44,7 +44,7 @@ IGNITION_ADD_PLUGIN(CautiousBot, CautiousBot::Drive) int main(int argc, char** argv) { - ignition::plugin::Loader pl; + gz::plugin::Loader pl; return 0; } @@ -57,4 +57,3 @@ echo "build: OK" ./plugin_test echo "plugin_test run: OK" -