aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cyclonedds-cxx/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cyclonedds-cxx/portfile.cmake')
-rw-r--r--vcpkg/ports/cyclonedds-cxx/portfile.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/cyclonedds-cxx/portfile.cmake b/vcpkg/ports/cyclonedds-cxx/portfile.cmake
new file mode 100644
index 0000000..2b46ebc
--- /dev/null
+++ b/vcpkg/ports/cyclonedds-cxx/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO eclipse-cyclonedds/cyclonedds-cxx
+ REF "${VERSION}"
+ SHA512 fd03beca1f2b7140c213a2be8c19390c308469b625e2bafd66935258d4e6bec6a8c01940c208501f2619c36f0a04f6538b17b1b7ca562ab5a7533be0747e5bef
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ "idllib" BUILD_IDLLIB
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/CycloneDDS-CXX")
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")