diff --git a/ports/eljonny-testcpp/portfile.cmake b/ports/eljonny-testcpp/portfile.cmake new file mode 100644 index 0000000000..d647d69118 --- /dev/null +++ b/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/ports/eljonny-testcpp/usage b/ports/eljonny-testcpp/usage new file mode 100644 index 0000000000..234a13b8f1 --- /dev/null +++ b/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/ports/eljonny-testcpp/vcpkg.json b/ports/eljonny-testcpp/vcpkg.json new file mode 100644 index 0000000000..3a9d6d7522 --- /dev/null +++ b/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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index a3bc07b0c1..33a1466d8d 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2672,6 +2672,10 @@ "baseline": "0.193", "port-version": 0 }, + "eljonny-testcpp": { + "baseline": "0.3.0-beta.4", + "port-version": 0 + }, "embree3": { "baseline": "3.13.5", "port-version": 4 diff --git a/versions/e-/eljonny-testcpp.json b/versions/e-/eljonny-testcpp.json new file mode 100644 index 0000000000..b1214e6d1f --- /dev/null +++ b/versions/e-/eljonny-testcpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "0ea650f4ac3c7a41b7ac6593c600ddceeef27fa0", + "version": "0.3.0-beta.4", + "port-version": 0 + } + ] +}