[cmakerc] Add usage text. (#27109)

This commit is contained in:
Billy O'Neal 2022-10-05 15:04:06 -07:00 committed by GitHub
parent 45fb2215a3
commit 3c861b4e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 3 deletions

View File

@ -9,6 +9,5 @@ vcpkg_from_github(
) )
file(INSTALL "${SOURCE_PATH}/CMakeRC.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME cmakerc-config.cmake) file(INSTALL "${SOURCE_PATH}/CMakeRC.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME cmakerc-config.cmake)
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

7
ports/cmakerc/usage Normal file
View File

@ -0,0 +1,7 @@
The package cmakerc provides additional cmake functions:
find_package(CMakeRC CONFIG REQUIRED)
cmrc_add_resource_library(foo-resources ALIAS foo::rc NAMESPACE foo ...)
target_link_libraries(main PRIVATE foo::rc)
See https://github.com/vector-of-bool/cmrc/blob/master/README.md

View File

@ -1,6 +1,7 @@
{ {
"name": "cmakerc", "name": "cmakerc",
"version-date": "2021-08-27", "version-date": "2021-08-27",
"port-version": 1,
"description": "A Resource Compiler in a Single CMake Script", "description": "A Resource Compiler in a Single CMake Script",
"homepage": "https://github.com/vector-of-bool/cmrc", "homepage": "https://github.com/vector-of-bool/cmrc",
"license": "MIT" "license": "MIT"

View File

@ -1490,7 +1490,7 @@
}, },
"cmakerc": { "cmakerc": {
"baseline": "2021-08-27", "baseline": "2021-08-27",
"port-version": 0 "port-version": 1
}, },
"cmark": { "cmark": {
"baseline": "0.30.1", "baseline": "0.30.1",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "d2fd3d5a7ba3648e56e111691ea6fa938cbc4ed9",
"version-date": "2021-08-27",
"port-version": 1
},
{ {
"git-tree": "740fd9bb83e79eba29ccd69546d2b3105d719d5d", "git-tree": "740fd9bb83e79eba29ccd69546d2b3105d719d5d",
"version-date": "2021-08-27", "version-date": "2021-08-27",