vcpkg/ports/librsvg/usage
2023-07-24 11:58:08 -07:00

11 lines
412 B
Plaintext

librsvg can be imported via CMake FindPkgConfig module:
find_package(PkgConfig REQUIRED)
pkg_check_modules(librsvg REQUIRED IMPORTED_TARGET librsvg)
target_link_libraries(main PkgConfig::librsvg)
vcpkg provides proprietary CMake targets:
find_package(unofficial-librsvg CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::librsvg::rsvg-2 unofficial::librsvg::pixbufloader-svg)