mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 18:31:48 +08:00
11 lines
367 B
Plaintext
11 lines
367 B
Plaintext
|
libffi can be imported via CMake FindPkgConfig module:
|
||
|
|
||
|
find_package(PkgConfig)
|
||
|
pkg_check_modules(LIBFFI REQUIRED IMPORTED_TARGET libffi)
|
||
|
target_link_libraries(main PRIVATE PkgConfig::LIBFFI)
|
||
|
|
||
|
vcpkg provides proprietary CMake targets:
|
||
|
|
||
|
find_package(unofficial-libffi CONFIG REQUIRED)
|
||
|
target_link_libraries(main PRIVATE unofficial::libffi::libffi)
|