[eljonny-testcpp]: new port (#37471)

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Jonathan Hyry
2025-08-11 17:31:38 -07:00
committed by GitHub
parent efb5ab2f5f
commit c43bd25adb
5 changed files with 61 additions and 0 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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
}
]
}

View File

@@ -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

View File

@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "0ea650f4ac3c7a41b7ac6593c600ddceeef27fa0",
"version": "0.3.0-beta.4",
"port-version": 0
}
]
}