2023-07-25 02:58:08 +08:00
|
|
|
librsvg can be imported via CMake FindPkgConfig module:
|
|
|
|
|
|
|
|
find_package(PkgConfig REQUIRED)
|
2023-09-26 14:47:35 +08:00
|
|
|
pkg_check_modules(LIBRSVG librsvg-2.0 IMPORTED_TARGET REQUIRED)
|
|
|
|
target_link_libraries(main PRIVATE PkgConfig::LIBRSVG)
|