File: FindRSVG.cmake

package info (click to toggle)
openscenegraph 3.2.3%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 32,824 kB
  • sloc: cpp: 370,040; ansic: 9,071; java: 1,020; yacc: 548; objc: 288; makefile: 285; xml: 155; lex: 151
file content (18 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#use pkg-config to find various modues
INCLUDE(FindPkgConfig OPTIONAL)

IF(PKG_CONFIG_FOUND)

    INCLUDE(FindPkgConfig)

    #Version 2.35 introduces the rsvg_cleanup function which is used
    PKG_CHECK_MODULES(RSVG librsvg-2.0>=2.35)

    PKG_CHECK_MODULES(CAIRO cairo)

    IF (RSVG_FOUND AND NOT CAIRO_FOUND)
       SET(RSVG_FOUND FALSE)
    ENDIF()


ENDIF()