aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cwapi3d
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cwapi3d
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cwapi3d')
-rw-r--r--vcpkg/ports/cwapi3d/portfile.cmake18
-rw-r--r--vcpkg/ports/cwapi3d/usage4
-rw-r--r--vcpkg/ports/cwapi3d/vcpkg.json17
3 files changed, 39 insertions, 0 deletions
diff --git a/vcpkg/ports/cwapi3d/portfile.cmake b/vcpkg/ports/cwapi3d/portfile.cmake
new file mode 100644
index 0000000..9b27c91
--- /dev/null
+++ b/vcpkg/ports/cwapi3d/portfile.cmake
@@ -0,0 +1,18 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO cwapi3d/cwapi3dcpp
+ REF 68fba49c5f99bb1b4e0b6f7ea285ee2805311821
+ SHA512 275a85d80b50ce71b19e7005a6a3db5079dfdd2f50a8f2f710746e6e12ba38d610fbd478c22a49127228648be7cf00b7a8e2ece9de830670124327e880d031dc
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH})
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/CwAPI3D)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/cwapi3d/usage b/vcpkg/ports/cwapi3d/usage
new file mode 100644
index 0000000..36f379b
--- /dev/null
+++ b/vcpkg/ports/cwapi3d/usage
@@ -0,0 +1,4 @@
+The package cwapi3d provides CMake targets:
+
+ find_package(CwAPI3D CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE CwAPI3D::CwAPI3D)
diff --git a/vcpkg/ports/cwapi3d/vcpkg.json b/vcpkg/ports/cwapi3d/vcpkg.json
new file mode 100644
index 0000000..608590c
--- /dev/null
+++ b/vcpkg/ports/cwapi3d/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "cwapi3d",
+ "version": "32.219.1",
+ "description": "CwAPI3D is the Cadwork 3D plugin architecture in C++.",
+ "homepage": "https://github.com/cwapi3d/cwapi3dcpp",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}