[cminpack] Fix exported config, add usage (#30141)

* [cminpack] Fix CMake config

* Add usage
This commit is contained in:
Kai Pastor 2023-03-13 04:45:55 +01:00 committed by GitHub
parent 092f81b960
commit 488875e721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 4 deletions

View File

@ -13,9 +13,10 @@ vcpkg_cmake_configure(
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# # Handle copyright
file(INSTALL "${SOURCE_PATH}/CopyrightMINPACK.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/CopyrightMINPACK.txt")

9
ports/cminpack/usage Normal file
View File

@ -0,0 +1,9 @@
cminpack provides CMake targets:
find_package(CMinpack CONFIG REQUIRED)
target_link_libraries(main PRIVATE cminpack::cminpack)
# alternative for single precision
target_link_libraries(main PRIVATE cminpack::cminpacks)
# alternative for long double precision
target_link_libraries(main PRIVATE cminpack::cminpackld)

View File

@ -1,13 +1,18 @@
{
"name": "cminpack",
"version": "1.3.8",
"port-version": 1,
"port-version": 2,
"description": "A C/C++ rewrite of the MINPACK software (originally in FORTRAN) for solving nonlinear equations and nonlinear least squares problems",
"homepage": "http://devernay.free.fr/hacks/cminpack/",
"license": null,
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1574,7 +1574,7 @@
},
"cminpack": {
"baseline": "1.3.8",
"port-version": 1
"port-version": 2
},
"cmocka": {
"baseline": "2020-08-01",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "141d26f7fd5eb7d8bebdabbbb05d4ca23fd8fbbf",
"version": "1.3.8",
"port-version": 2
},
{
"git-tree": "6e903be11f8d868d5fb74f597bc0d2890854eb95",
"version": "1.3.8",