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/libsersi | |
Diffstat (limited to 'vcpkg/ports/libsersi')
| -rw-r--r-- | vcpkg/ports/libsersi/portfile.cmake | 22 | ||||
| -rw-r--r-- | vcpkg/ports/libsersi/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/libsersi/vcpkg.json | 17 |
3 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/libsersi/portfile.cmake b/vcpkg/ports/libsersi/portfile.cmake new file mode 100644 index 0000000..a950929 --- /dev/null +++ b/vcpkg/ports/libsersi/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO crhowell3/libsersi + REF "v${VERSION}" + SHA512 f8cd84e12a14d6c9dc424c176b3e0536293cfa96f4cb03f7e4c9008ce6272b70284179f16dca5f5fb82c4cad9003a16ed2639bcd52f18f39b9587cd63075e188 + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DINSTALL_INCLUDE_DIR=include +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libsersi) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +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/libsersi/usage b/vcpkg/ports/libsersi/usage new file mode 100644 index 0000000..799c1e1 --- /dev/null +++ b/vcpkg/ports/libsersi/usage @@ -0,0 +1,4 @@ +libsersi provides CMake targets: + + find_package(libsersi CONFIG REQUIRED) + target_link_libraries(main PRIVATE libsersi::sersi) diff --git a/vcpkg/ports/libsersi/vcpkg.json b/vcpkg/ports/libsersi/vcpkg.json new file mode 100644 index 0000000..af54663 --- /dev/null +++ b/vcpkg/ports/libsersi/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "libsersi", + "version": "0.1.0", + "description": "C++ implementation of the IEEE 1278.1a-1998 Distributed Interactive Simulation (DIS) application protocol.", + "homepage": "https://github.com/crhowell3/libsersi", + "license": "BSD-2-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |