vcpkg/ports/librsvg/usage

11 lines
412 B
Plaintext
Raw Normal View History

2023-07-25 02:58:08 +08:00
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)