mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[gmp] Fix usage (#26306)
* Add config.cmake.in * add port version * Add new line in the end of the file * Add license * update * add usage file
This commit is contained in:
parent
a68c22c9a7
commit
99c3325e98
@ -81,4 +81,4 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/COPYINGv3" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
11
ports/gmp/usage
Normal file
11
ports/gmp/usage
Normal file
@ -0,0 +1,11 @@
|
||||
The package gmp can be imported via CMake FindPkgConfig module:
|
||||
|
||||
# gmp
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(gmp REQUIRED IMPORTED_TARGET gmp)
|
||||
target_link_libraries(main PkgConfig::gmp)
|
||||
|
||||
# gmpxx
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(gmpxx REQUIRED IMPORTED_TARGET gmpxx)
|
||||
target_link_libraries(main PkgConfig::gmpxx)
|
@ -1,9 +1,10 @@
|
||||
{
|
||||
"name": "gmp",
|
||||
"version": "6.2.1",
|
||||
"port-version": 11,
|
||||
"port-version": 12,
|
||||
"description": "The GNU Multiple Precision Arithmetic Library",
|
||||
"homepage": "https://gmplib.org",
|
||||
"license": "LGPL-3.0-only OR GPL-2.0-only",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "gmp",
|
||||
|
@ -2634,7 +2634,7 @@
|
||||
},
|
||||
"gmp": {
|
||||
"baseline": "6.2.1",
|
||||
"port-version": 11
|
||||
"port-version": 12
|
||||
},
|
||||
"gmsh": {
|
||||
"baseline": "4.9.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "53a7476d7dc1a0a00be2ef9578ba87c3bc13f06f",
|
||||
"version": "6.2.1",
|
||||
"port-version": 12
|
||||
},
|
||||
{
|
||||
"git-tree": "678326aeaf5a7fed7d24a2184cb0d483336cac74",
|
||||
"version": "6.2.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user