File: FindRsvg2.cmake

package info (click to toggle)
darktable 5.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,644 kB
  • sloc: ansic: 367,957; cpp: 102,838; xml: 20,091; lisp: 15,092; sh: 3,767; javascript: 3,264; perl: 1,925; python: 1,551; ruby: 975; makefile: 543; asm: 46; sql: 38; awk: 21
file content (30 lines) | stat: -rw-r--r-- 1,140 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# - Find the native sqlite3 includes and library
#
# This module defines
#  Rsvg2_INCLUDE_DIR, where to find sqlite3.h, etc.
#  Rsvg2_LIBRARIES, the libraries to link against to use sqlite3.
#  Rsvg2_FOUND, If false, do not try to use sqlite3.
# also defined, but not for general use are
#  Rsvg2_LIBRARY, where to find the sqlite3 library.


#=============================================================================
# Copyright 2010 henrik andersson
#=============================================================================

find_path(Rsvg2_INCLUDE_DIR librsvg/rsvg.h PATH_SUFFIXES librsvg-2.0 librsvg-2 )
mark_as_advanced(Rsvg2_INCLUDE_DIR)

set(Rsvg2_NAMES ${Rsvg2_NAMES} rsvg-2 librsvg-2)
find_library(Rsvg2_LIBRARY NAMES ${Rsvg2_NAMES} )
mark_as_advanced(Rsvg2_LIBRARY)

# handle the QUIETLY and REQUIRED arguments and set Rsvg2_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Rsvg2 DEFAULT_MSG Rsvg2_LIBRARY Rsvg2_INCLUDE_DIR)

IF(Rsvg2_FOUND)
  SET(Rsvg2_LIBRARIES ${Rsvg2_LIBRARY})
  SET(Rsvg2_INCLUDE_DIRS ${Rsvg2_INCLUDE_DIR})
ENDIF(Rsvg2_FOUND)