aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/eljonny-testcpp
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/eljonny-testcpp')
-rw-r--r--vcpkg/ports/eljonny-testcpp/portfile.cmake25
-rw-r--r--vcpkg/ports/eljonny-testcpp/usage6
-rw-r--r--vcpkg/ports/eljonny-testcpp/vcpkg.json17
3 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/eljonny-testcpp/portfile.cmake b/vcpkg/ports/eljonny-testcpp/portfile.cmake
new file mode 100644
index 0000000..d647d69
--- /dev/null
+++ b/vcpkg/ports/eljonny-testcpp/portfile.cmake
@@ -0,0 +1,25 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO eljonny/TestCPP
+ REF "v${VERSION}"
+ SHA512 a47803b2e36cc5ed6055d27865d61225368daaebefe615d22afb2055b4da6ff44a8da8a4bee72f7f35bb9a53ebc12229143b16401391cef130818f105a42df3e
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ DO_NOT_DELETE_PARENT_CONFIG_PATH
+ CONFIG_PATH "lib/cmake"
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
diff --git a/vcpkg/ports/eljonny-testcpp/usage b/vcpkg/ports/eljonny-testcpp/usage
new file mode 100644
index 0000000..234a13b
--- /dev/null
+++ b/vcpkg/ports/eljonny-testcpp/usage
@@ -0,0 +1,6 @@
+eljonny-testcpp provides CMake targets:
+
+ find_package(TestCPP CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE cpptesting::TestCPP)
+
+See https://github.com/eljonny/TestCPP/blob/main/README.md for more information
diff --git a/vcpkg/ports/eljonny-testcpp/vcpkg.json b/vcpkg/ports/eljonny-testcpp/vcpkg.json
new file mode 100644
index 0000000..3a9d6d7
--- /dev/null
+++ b/vcpkg/ports/eljonny-testcpp/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "eljonny-testcpp",
+ "version": "0.3.0-beta.4",
+ "description": "A simple C++ test framework with no dependencies other than C++11 STL.",
+ "homepage": "https://github.com/eljonny/TestCPP",
+ "license": "Unlicense",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}