vcpkg provides proprietary CMake targets:

  find_package(unofficial-libffi CONFIG REQUIRED)
  target_link_libraries(main PRIVATE unofficial::libffi::libffi)

libffi provides pkg-config modules:

  # Library supporting Foreign Function Interfaces
  libffi
