diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cista | |
Diffstat (limited to 'vcpkg/ports/cista')
| -rw-r--r-- | vcpkg/ports/cista/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/cista/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/cista/vcpkg.json | 17 |
3 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/cista/portfile.cmake b/vcpkg/ports/cista/portfile.cmake new file mode 100644 index 0000000..aa987bc --- /dev/null +++ b/vcpkg/ports/cista/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO felixguendling/cista + REF "v${VERSION}" + SHA512 87679d9eba2b6ed1fe60b39163b13cebaee221127784b5906c82770455908375e6cdcca58d3994fb22eefe4d9605332ee2134c0420f5c11783868cffd7cfa0ee + HEAD_REF master +) + +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCISTA_INSTALL=ON +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cista) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/vcpkg/ports/cista/usage b/vcpkg/ports/cista/usage new file mode 100644 index 0000000..7954c2b --- /dev/null +++ b/vcpkg/ports/cista/usage @@ -0,0 +1,4 @@ +cista provides CMake targets: + + find_package(cista CONFIG REQUIRED) + target_link_libraries(main PRIVATE cista::cista) diff --git a/vcpkg/ports/cista/vcpkg.json b/vcpkg/ports/cista/vcpkg.json new file mode 100644 index 0000000..4ef9279 --- /dev/null +++ b/vcpkg/ports/cista/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "cista", + "version": "0.16", + "description": "Cista is a simple, high-performance, zero-copy C++ serialization & reflection library.", + "homepage": "https://github.com/felixguendling/cista", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |