vcpkg/ports/cairo/usage

12 lines
464 B
Plaintext
Raw Normal View History

The package cairo can be imported via CMake FindPkgConfig module:
# cairo
find_package(PkgConfig REQUIRED)
pkg_check_modules(cairo REQUIRED IMPORTED_TARGET cairo)
target_link_libraries(main PkgConfig::cairo)
# cairo-script-interpreter
find_package(PkgConfig REQUIRED)
pkg_check_modules(cairo-script-interpreter REQUIRED IMPORTED_TARGET cairo-script-interpreter)
target_link_libraries(main PkgConfig::cairo-script-interpreter)