Subversion Repositories Scribus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5138 cbradney 1
# - Try to find Cups
2
# Once done this will define
3
#
4
#  CUPS_FOUND - system has Cups
5
#  CUPS_INCLUDE_DIR - the Cups include directory
6
#  CUPS_LIBRARY - Link these to use CUPS
7
#
8
 
9
FIND_PATH(CUPS_INCLUDE_DIR cups/cups.h
10
  /usr/include
11
  /usr/local/include
12
)
13
 
14
FIND_LIBRARY(CUPS_LIBRARY NAMES cups PATHS /usr/lib /usr/local/lib)
15
 
16
IF(CUPS_INCLUDE_DIR AND CUPS_LIBRARY)
17
   SET(CUPS_FOUND TRUE)
18
ENDIF(CUPS_INCLUDE_DIR AND CUPS_LIBRARY)
19
 
20
SET(Cups_FIND_QUIETLY 1)
21
 
22
IF(CUPS_FOUND)
23
  SET( CUPS_LIBRARIES ${CUPS_LIBRARY} )
24
  IF(NOT Cups_FIND_QUIETLY)
25
    MESSAGE(STATUS "Found Cups: ${CUPS_LIBRARY}")
26
  ENDIF(NOT Cups_FIND_QUIETLY)
27
ELSE(CUPS_FOUND)
28
  IF(Cups_FIND_REQUIRED)
29
    MESSAGE(SEND_ERROR "Could not find Cups")
30
  ENDIF(Cups_FIND_REQUIRED)
31
ENDIF(CUPS_FOUND)