diff options
Diffstat (limited to 'vcpkg/ports/snitch')
| -rw-r--r-- | vcpkg/ports/snitch/portfile.cmake | 23 | ||||
| -rw-r--r-- | vcpkg/ports/snitch/vcpkg.json | 17 |
2 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/snitch/portfile.cmake b/vcpkg/ports/snitch/portfile.cmake new file mode 100644 index 0000000..359f838 --- /dev/null +++ b/vcpkg/ports/snitch/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO snitch-org/snitch
+ REF "v${VERSION}"
+ SHA512 bb51c7ec51ab934ccd05b8e653ba3da8f321702307fa28b11b8a7ec31e170e337c2ccbe8f4895a25e4fdec1358f90d11a51c489511af95a65311c57e4a4164ef
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DSNITCH_DEFINE_MAIN=0
+ -DCMAKE_CXX_STANDARD=20
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(
+ CONFIG_PATH lib/cmake/snitch
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
diff --git a/vcpkg/ports/snitch/vcpkg.json b/vcpkg/ports/snitch/vcpkg.json new file mode 100644 index 0000000..fb30362 --- /dev/null +++ b/vcpkg/ports/snitch/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "snitch", + "version": "1.2.5", + "description": "Lightweight C++20 testing framework.", + "homepage": "https://github.com/snitch-org/snitch", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |