Skip to content

chore(port): new port package-project-cmake #198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ports/package-project-cmake/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH
SOURCE_PATH
REPO
TheLartians/PackageProject.cmake
REF
v${VERSION}
SHA512
d13cc286f06af7231da28283fa4b0cb3ad42c033c37d32ed571dcc7f150b03a3b2fd2b2912bda031fe1a6d73ca846578f3d7c4af4d4b0e540cb9a798bd51ceac
)

file(RENAME ${SOURCE_PATH}/CMakeLists.txt ${SOURCE_PATH}/PackageProject.cmake)

set(items ${SOURCE_PATH}/PackageProject.cmake ${SOURCE_PATH}/version.h.in
${SOURCE_PATH}/Config.cmake.in)
vcpkg_cmake_module(PATH_LIST ${items})

file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})

vcpkg_install_copyright(FILE_LIST ${SOURCE_PATH}/LICENSE)
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
5 changes: 5 additions & 0 deletions ports/package-project-cmake/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The package package-project-cmake provides CMake modules:

find_package(package-project-cmake REQUIRED)
# More detail can refer to <https://github.com/TheLartians/PackageProject.cmake>.
include(package-project-cmake/PackageProject.cmake)
13 changes: 13 additions & 0 deletions ports/package-project-cmake/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "package-project-cmake",
"version": "1.12.0",
"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.",
"homepage": "https://github.com/TheLartians/PackageProject.cmake",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake-module",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"baseline": "5f5c92c1a0a88dd5d214f60402d4244af4e3b795",
"port-version": 0
},
"package-project-cmake": {
"baseline": "1.12.0",
"port-version": 0
},
"pytest-cmake": {
"baseline": "0.8.3",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/p-/package-project-cmake.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "36055b8fc9346367cb6f229657944c670281b844",
"version": "1.12.0",
"port-version": 0
}
]
}
Loading