File: CupsConfig.cmake

package info (click to toggle)
scribus 1.4.6%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 244,196 kB
  • ctags: 25,329
  • sloc: cpp: 273,566; xml: 12,482; python: 3,446; ansic: 3,438; makefile: 1,204; perl: 95; sh: 41
file content (31 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (11)
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
31
# - Try to find Cups
# Once done this will define
#
#  CUPS_FOUND - system has Cups
#  CUPS_INCLUDE_DIR - the Cups include directory
#  CUPS_LIBRARY - Link these to use CUPS
#

FIND_PATH(CUPS_INCLUDE_DIR cups/cups.h
  /usr/include
  /usr/local/include
)

FIND_LIBRARY(CUPS_LIBRARY NAMES cups PATHS /usr/lib /usr/local/lib)

IF(CUPS_INCLUDE_DIR AND CUPS_LIBRARY)
   SET(CUPS_FOUND TRUE)
ENDIF(CUPS_INCLUDE_DIR AND CUPS_LIBRARY)

SET(Cups_FIND_QUIETLY 1)

IF(CUPS_FOUND)
  SET( CUPS_LIBRARIES ${CUPS_LIBRARY} )
  IF(NOT Cups_FIND_QUIETLY)
    MESSAGE(STATUS "Found Cups: ${CUPS_LIBRARY}")
  ENDIF(NOT Cups_FIND_QUIETLY)
ELSE(CUPS_FOUND)
  IF(Cups_FIND_REQUIRED)
    MESSAGE(SEND_ERROR "Could not find Cups")
  ENDIF(Cups_FIND_REQUIRED)
ENDIF(CUPS_FOUND)