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/fmi4cpp | |
Diffstat (limited to 'vcpkg/ports/fmi4cpp')
| -rw-r--r-- | vcpkg/ports/fmi4cpp/portfile.cmake | 24 | ||||
| -rw-r--r-- | vcpkg/ports/fmi4cpp/vcpkg.json | 23 |
2 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/ports/fmi4cpp/portfile.cmake b/vcpkg/ports/fmi4cpp/portfile.cmake new file mode 100644 index 0000000..32a3e22 --- /dev/null +++ b/vcpkg/ports/fmi4cpp/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO NTNU-IHB/FMI4cpp + REF 0.8.0 + SHA512 547f61dfbd57593ff8839fbed3f8a5624551ee4be5e0dd7773384a869086af8a4483cfe17dc087e3f03c9ea2038b537c8c4998a405687c1a353d08e52dac411e + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DFMI4CPP_BUILD_TESTS=OFF + -DFMI4CPP_BUILD_EXAMPLES=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_copy_pdbs() + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/fmi4cpp/vcpkg.json b/vcpkg/ports/fmi4cpp/vcpkg.json new file mode 100644 index 0000000..399c65f --- /dev/null +++ b/vcpkg/ports/fmi4cpp/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "fmi4cpp", + "version": "0.8.0", + "description": "FMI 2.0 implementation written in modern C++", + "homepage": "https://github.com/NTNU-IHB/FMI4cpp", + "dependencies": [ + "boost-property-tree", + { + "name": "libzip", + "features": [ + "openssl" + ] + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |