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)