mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:29:00 +08:00
[cminpack] Fix exported config, add usage (#30141)
* [cminpack] Fix CMake config * Add usage
This commit is contained in:
parent
092f81b960
commit
488875e721
@ -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
9
ports/cminpack/usage
Normal 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)
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1574,7 +1574,7 @@
|
||||
},
|
||||
"cminpack": {
|
||||
"baseline": "1.3.8",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"cmocka": {
|
||||
"baseline": "2020-08-01",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "141d26f7fd5eb7d8bebdabbbb05d4ca23fd8fbbf",
|
||||
"version": "1.3.8",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "6e903be11f8d868d5fb74f597bc0d2890854eb95",
|
||||
"version": "1.3.8",
|
||||
|
Loading…
Reference in New Issue
Block a user