vcpkg/ports/gmp/usage
Mengna Li 99c3325e98
[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
2022-08-18 10:39:56 -07:00

12 lines
375 B
Plaintext

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)