mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 08:19:01 +08:00
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)
|