Skip to content

Commit c43bd25

Browse files
eljonnyBillyONeal
andauthored
[eljonny-testcpp]: new port (#37471)
Co-authored-by: Billy Robert O'Neal III <[email protected]>
1 parent efb5ab2 commit c43bd25

File tree

5 files changed

+61
-0
lines changed

5 files changed

+61
-0
lines changed

ports/eljonny-testcpp/portfile.cmake

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2+
3+
vcpkg_from_github(
4+
OUT_SOURCE_PATH SOURCE_PATH
5+
REPO eljonny/TestCPP
6+
REF "v${VERSION}"
7+
SHA512 a47803b2e36cc5ed6055d27865d61225368daaebefe615d22afb2055b4da6ff44a8da8a4bee72f7f35bb9a53ebc12229143b16401391cef130818f105a42df3e
8+
HEAD_REF main
9+
)
10+
11+
vcpkg_cmake_configure(
12+
SOURCE_PATH "${SOURCE_PATH}"
13+
)
14+
15+
vcpkg_cmake_install()
16+
17+
vcpkg_cmake_config_fixup(
18+
DO_NOT_DELETE_PARENT_CONFIG_PATH
19+
CONFIG_PATH "lib/cmake"
20+
)
21+
22+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
23+
24+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
25+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

ports/eljonny-testcpp/usage

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
eljonny-testcpp provides CMake targets:
2+
3+
find_package(TestCPP CONFIG REQUIRED)
4+
target_link_libraries(main PRIVATE cpptesting::TestCPP)
5+
6+
See https://github.com/eljonny/TestCPP/blob/main/README.md for more information

ports/eljonny-testcpp/vcpkg.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "eljonny-testcpp",
3+
"version": "0.3.0-beta.4",
4+
"description": "A simple C++ test framework with no dependencies other than C++11 STL.",
5+
"homepage": "https://github.com/eljonny/TestCPP",
6+
"license": "Unlicense",
7+
"dependencies": [
8+
{
9+
"name": "vcpkg-cmake",
10+
"host": true
11+
},
12+
{
13+
"name": "vcpkg-cmake-config",
14+
"host": true
15+
}
16+
]
17+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,6 +2672,10 @@
26722672
"baseline": "0.193",
26732673
"port-version": 0
26742674
},
2675+
"eljonny-testcpp": {
2676+
"baseline": "0.3.0-beta.4",
2677+
"port-version": 0
2678+
},
26752679
"embree3": {
26762680
"baseline": "3.13.5",
26772681
"port-version": 4

versions/e-/eljonny-testcpp.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "0ea650f4ac3c7a41b7ac6593c600ddceeef27fa0",
5+
"version": "0.3.0-beta.4",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)