Skip to content

Commit 0a7db98

Browse files
committed
feat: [cmake-modules] new port
Signed-off-by: msclock <[email protected]>
1 parent a3891fc commit 0a7db98

File tree

5 files changed

+51
-0
lines changed

5 files changed

+51
-0
lines changed

ports/cmake-modules/portfile.cmake

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH
3+
SOURCE_PATH
4+
REPO
5+
msclock/cmake-modules
6+
REF
7+
v${VERSION}
8+
SHA512
9+
42a24ea44b17e6e7cfc4b9464c5403332bcdbb2bf464ef6aa6cc5e9fa72be065303df1b7060c19073f3d48fcf2ac9ff387aebeea0fdbb86863b3577e17177258
10+
)
11+
12+
vcpkg_cmake_module(DIRECTORY_LIST ${SOURCE_PATH}/cmake/)
13+
14+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage
15+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
16+
17+
vcpkg_install_copyright(FILE_LIST ${SOURCE_PATH}/LICENSE)
18+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)

ports/cmake-modules/usage

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
The package cmake-modules provides modules:
2+
3+
find_package(cmake-modules REQUIRED)
4+
include(cmake-modules/build/Default)
5+
6+
More modules can refer to <https://github.com/msclock/cmake-modules>.

ports/cmake-modules/vcpkg.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "cmake-modules",
3+
"version": "1.0.0",
4+
"port-version": 0,
5+
"homepage": "https://github.com/msclock/cmake-modules",
6+
"description": "Some useful cmake module collection",
7+
"license": "Apache-2.0",
8+
"dependencies": [
9+
{
10+
"name": "vcpkg-cmake-module",
11+
"host": true
12+
}
13+
]
14+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"baseline": "0.38.6",
55
"port-version": 1
66
},
7+
"cmake-modules": {
8+
"baseline": "1.0.0",
9+
"port-version": 0
10+
},
711
"vcpkg-cmake-module": {
812
"baseline": "2023-10-11",
913
"port-version": 2

versions/c-/cmake-modules.json

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

0 commit comments

Comments
 (0)