2010-11-12 00:51:46 +08:00
|
|
|
#use pkg-config to find various modues
|
2020-03-23 06:46:50 +08:00
|
|
|
find_package(PkgConfig QUIET)
|
2010-11-12 00:51:46 +08:00
|
|
|
|
|
|
|
IF(PKG_CONFIG_FOUND)
|
2013-11-22 17:48:02 +08:00
|
|
|
#Version 2.35 introduces the rsvg_cleanup function which is used
|
|
|
|
PKG_CHECK_MODULES(RSVG librsvg-2.0>=2.35)
|
|
|
|
|
2010-11-12 00:51:46 +08:00
|
|
|
PKG_CHECK_MODULES(CAIRO cairo)
|
|
|
|
|
|
|
|
IF (RSVG_FOUND AND NOT CAIRO_FOUND)
|
|
|
|
SET(RSVG_FOUND FALSE)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
ENDIF()
|