aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/bext-ut
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/bext-ut')
-rw-r--r--vcpkg/ports/bext-ut/portfile.cmake31
-rw-r--r--vcpkg/ports/bext-ut/usage4
-rw-r--r--vcpkg/ports/bext-ut/vcpkg.json17
3 files changed, 52 insertions, 0 deletions
diff --git a/vcpkg/ports/bext-ut/portfile.cmake b/vcpkg/ports/bext-ut/portfile.cmake
new file mode 100644
index 0000000..8791330
--- /dev/null
+++ b/vcpkg/ports/bext-ut/portfile.cmake
@@ -0,0 +1,31 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO boost-ext/ut
+ REF "v${VERSION}"
+ SHA512 6894767ddae9d3ddd7aac2f77565f653e5051d213d39129a149405c6441a5f20a2878a5f548ad8d4ca37f70e44c6360c447f12df9c870149f9ed57a281214c24
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBOOST_UT_ALLOW_CPM_USE=OFF
+ -DBOOST_UT_BUILD_BENCHMARKS=OFF
+ -DBOOST_UT_BUILD_EXAMPLES=OFF
+ -DBOOST_UT_BUILD_TESTS=OFF
+ -DINCLUDE_INSTALL_DIR=include
+ -DBOOST_UT_DISABLE_MODULE=ON
+)
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(PACKAGE_NAME ut CONFIG_PATH lib/cmake/ut-${VERSION})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
+ "${CURRENT_PACKAGES_DIR}/lib"
+)
+
+
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage"
+ "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
diff --git a/vcpkg/ports/bext-ut/usage b/vcpkg/ports/bext-ut/usage
new file mode 100644
index 0000000..ade67c1
--- /dev/null
+++ b/vcpkg/ports/bext-ut/usage
@@ -0,0 +1,4 @@
+bext-ut provides CMake targets:
+
+find_package(ut CONFIG REQUIRED)
+target_link_libraries(main PRIVATE Boost::ut)
diff --git a/vcpkg/ports/bext-ut/vcpkg.json b/vcpkg/ports/bext-ut/vcpkg.json
new file mode 100644
index 0000000..2888766
--- /dev/null
+++ b/vcpkg/ports/bext-ut/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "bext-ut",
+ "version": "2.0.1",
+ "description": "C++ single header/single module, macro-free μ(micro)/Unit Testing Framework.",
+ "homepage": "https://github.com/boost-ext/ut",
+ "license": "BSL-1.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}