aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/atliac-minitest
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/atliac-minitest
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/atliac-minitest')
-rw-r--r--vcpkg/ports/atliac-minitest/portfile.cmake26
-rw-r--r--vcpkg/ports/atliac-minitest/usage5
-rw-r--r--vcpkg/ports/atliac-minitest/vcpkg.json17
3 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/atliac-minitest/portfile.cmake b/vcpkg/ports/atliac-minitest/portfile.cmake
new file mode 100644
index 0000000..ec9aba8
--- /dev/null
+++ b/vcpkg/ports/atliac-minitest/portfile.cmake
@@ -0,0 +1,26 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Atliac/minitest
+ REF "v${VERSION}"
+ SHA512 bd39aa9d4f897f03f0f42b28ee7aabc0fbe5168d09009ebcb253ee3cb5f52ae1d81e9c6657aaa93fe8f67d20d9d92874432a06cadcb78f750681772bb3316d78
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DBUILD_TESTS=OFF
+ -DMINITEST_PACKAGE_NAME=${PORT}
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup()
+
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage")
+
+vcpkg_copy_pdbs()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
diff --git a/vcpkg/ports/atliac-minitest/usage b/vcpkg/ports/atliac-minitest/usage
new file mode 100644
index 0000000..1fd833c
--- /dev/null
+++ b/vcpkg/ports/atliac-minitest/usage
@@ -0,0 +1,5 @@
+minitest provides CMake targets:
+
+ # Note: the `MINITEST_RUN_TESTS(argc, argv);` must be called in the main function
+ find_package(${PORT} CONFIG REQUIRED)
+ minitest_discover_tests(target)
diff --git a/vcpkg/ports/atliac-minitest/vcpkg.json b/vcpkg/ports/atliac-minitest/vcpkg.json
new file mode 100644
index 0000000..26bc976
--- /dev/null
+++ b/vcpkg/ports/atliac-minitest/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "atliac-minitest",
+ "version": "1.0.0",
+ "description": "A C++ unit testing framework that helps write tests alongside the code being tested.",
+ "homepage": "https://github.com/Atliac/minitest",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}