mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 23:19:06 +08:00
99c3325e98
* Add config.cmake.in * add port version * Add new line in the end of the file * Add license * update * add usage file
12 lines
375 B
Plaintext
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)
|