mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 11:20:25 +08:00
edd3db2e3b
* [libffi] Use upstream's build system * WIP [skip actions] * WIP [skip actions] * WIP [skip actions] * Finish libffi * Fix downstream lookup * Update versions * [gobject-introspection] Require libffi * Move DLLs to bin * [libffi] Usage * Restore azp * Fix typo * CI
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)
|