aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/copypp
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/copypp')
-rw-r--r--vcpkg/ports/copypp/portfile.cmake25
-rw-r--r--vcpkg/ports/copypp/usage4
-rw-r--r--vcpkg/ports/copypp/vcpkg.json17
3 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/copypp/portfile.cmake b/vcpkg/ports/copypp/portfile.cmake
new file mode 100644
index 0000000..4e8d06b
--- /dev/null
+++ b/vcpkg/ports/copypp/portfile.cmake
@@ -0,0 +1,25 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO i-curve/copypp
+ REF "v${VERSION}"
+ SHA512 1c34cfcc30234d6a0eb3f150dff40299f74be8cc7653dc494a5a6857ad4d42342815a8ef2cb3b06d05555cd9d6d4c9b9941a7a845ab40cc782ce4660fb1e2560
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS "-DCOPYPP_TEST=OFF"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/copypp)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/copypp/usage b/vcpkg/ports/copypp/usage
new file mode 100644
index 0000000..17bb740
--- /dev/null
+++ b/vcpkg/ports/copypp/usage
@@ -0,0 +1,4 @@
+copypp provides CMake targets:
+
+ find_package(copypp CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE icurve::copypp)
diff --git a/vcpkg/ports/copypp/vcpkg.json b/vcpkg/ports/copypp/vcpkg.json
new file mode 100644
index 0000000..06d6566
--- /dev/null
+++ b/vcpkg/ports/copypp/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "copypp",
+ "version": "0.3.0",
+ "description": "support field copy in different c++ data type.",
+ "homepage": "https://github.com/i-curve/copypp",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}