mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 19:39:06 +08:00
11 lines
412 B
Plaintext
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)
|