Skip to content

Commit e779277

Browse files
chore(port): new port package-project-cmake (#198)
* chore(port): new port package-project-cmake Signed-off-by: msclock <[email protected]> * ci: auto fixes from pre-commit --------- Signed-off-by: msclock <[email protected]> Co-authored-by: msclock-bot[bot] <msclock-bot[bot]@users.noreply.github.com>
1 parent e7a3d80 commit e779277

File tree

5 files changed

+53
-0
lines changed

5 files changed

+53
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH
3+
SOURCE_PATH
4+
REPO
5+
TheLartians/PackageProject.cmake
6+
REF
7+
v${VERSION}
8+
SHA512
9+
d13cc286f06af7231da28283fa4b0cb3ad42c033c37d32ed571dcc7f150b03a3b2fd2b2912bda031fe1a6d73ca846578f3d7c4af4d4b0e540cb9a798bd51ceac
10+
)
11+
12+
file(RENAME ${SOURCE_PATH}/CMakeLists.txt ${SOURCE_PATH}/PackageProject.cmake)
13+
14+
set(items ${SOURCE_PATH}/PackageProject.cmake ${SOURCE_PATH}/version.h.in
15+
${SOURCE_PATH}/Config.cmake.in)
16+
vcpkg_cmake_module(PATH_LIST ${items})
17+
18+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage
19+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
20+
21+
vcpkg_install_copyright(FILE_LIST ${SOURCE_PATH}/LICENSE)
22+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)

ports/package-project-cmake/usage

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The package package-project-cmake provides CMake modules:
2+
3+
find_package(package-project-cmake REQUIRED)
4+
# More detail can refer to <https://github.com/TheLartians/PackageProject.cmake>.
5+
include(package-project-cmake/PackageProject.cmake)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "package-project-cmake",
3+
"version": "1.12.0",
4+
"description": "Help other developers use your project. A CMake script for packaging C/C++ projects for simple project installation while employing best-practices for maximum compatibility.",
5+
"homepage": "https://github.com/TheLartians/PackageProject.cmake",
6+
"license": "MIT",
7+
"dependencies": [
8+
{
9+
"name": "vcpkg-cmake-module",
10+
"host": true
11+
}
12+
]
13+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
"baseline": "5f5c92c1a0a88dd5d214f60402d4244af4e3b795",
4545
"port-version": 0
4646
},
47+
"package-project-cmake": {
48+
"baseline": "1.12.0",
49+
"port-version": 0
50+
},
4751
"pytest-cmake": {
4852
"baseline": "0.8.3",
4953
"port-version": 0
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": "36055b8fc9346367cb6f229657944c670281b844",
5+
"version": "1.12.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)