From ca6e6d09ce1cbf956e94ca01079ad3f778377a8c Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 10 Feb 2020 21:58:52 +0100 Subject: [PATCH] Add new port ignition-cmake2 --- ports/ignition-cmake2/CONTROL | 5 +++++ ports/ignition-cmake2/portfile.cmake | 16 ++++++++++++++++ ports/ignition-cmake2/usage | 3 +++ 3 files changed, 24 insertions(+) create mode 100644 ports/ignition-cmake2/CONTROL create mode 100644 ports/ignition-cmake2/portfile.cmake create mode 100644 ports/ignition-cmake2/usage diff --git a/ports/ignition-cmake2/CONTROL b/ports/ignition-cmake2/CONTROL new file mode 100644 index 00000000000000..455beb85f8e6c0 --- /dev/null +++ b/ports/ignition-cmake2/CONTROL @@ -0,0 +1,5 @@ +Source: ignition-cmake2 +Version: 2.1.1 +Homepage: https://ignitionrobotics.org/libs/cmake +Description: CMake helper functions for building robotic applications +Build-Depends: ignition-modularscripts diff --git a/ports/ignition-cmake2/portfile.cmake b/ports/ignition-cmake2/portfile.cmake new file mode 100644 index 00000000000000..5bc63eec1280e2 --- /dev/null +++ b/ports/ignition-cmake2/portfile.cmake @@ -0,0 +1,16 @@ +include(${CURRENT_INSTALLED_DIR}/share/ignitionmodularscripts/ignition_modular_library.cmake) + +set(PACKAGE_VERSION "2.1.1") + +ignition_modular_library(NAME cmake + VERSION ${PACKAGE_VERSION} + SHA512 4d22a45ccc9582c7e4b370b884511782d1629fa3e257dd92300388b5050d22fa63dd4a6ef8942abb9ebbc300df4cd526d1d8a7088a92b0073e152c16c7b97e2b) + +# Permit empty include folder +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) + +# Remove unneccessary directory, as ignition-cmake is a pure CMake package +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug) + +# Install custom usage +configure_file(${CMAKE_CURRENT_LIST_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY) diff --git a/ports/ignition-cmake2/usage b/ports/ignition-cmake2/usage new file mode 100644 index 00000000000000..b62ba0c764719b --- /dev/null +++ b/ports/ignition-cmake2/usage @@ -0,0 +1,3 @@ +The package ignition-cmake2 provides CMake integration: + + find_package(ignition-cmake2 CONFIG REQUIRED)