[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:
Mengna Li 2022-08-19 01:39:56 +08:00 committed by GitHub
parent a68c22c9a7
commit 99c3325e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 3 deletions

View File

@ -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
View 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)

View File

@ -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",

View File

@ -2634,7 +2634,7 @@
},
"gmp": {
"baseline": "6.2.1",
"port-version": 11
"port-version": 12
},
"gmsh": {
"baseline": "4.9.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "53a7476d7dc1a0a00be2ef9578ba87c3bc13f06f",
"version": "6.2.1",
"port-version": 12
},
{
"git-tree": "678326aeaf5a7fed7d24a2184cb0d483336cac74",
"version": "6.2.1",