File: FindPoDoFo.cmake

package info (click to toggle)
libdigidoc 3.10.5-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,684 kB
  • sloc: ansic: 29,056; makefile: 19
file content (28 lines) | stat: -rw-r--r-- 860 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
# - Find PoDoFo
# Find the native PoDoFo includes and library
#
#  PODOFO_INCLUDE_DIR - where to find winscard.h, wintypes.h, etc.
#  PODOFO_LIBRARIES   - List of libraries when using PoDoFo.
#  PODOFO_FOUND       - True if PoDoFo found.


IF (PODOFO_INCLUDE_DIR)
  # Already in cache, be silent
  SET(PODOFO_FIND_QUIETLY TRUE)
ENDIF (PODOFO_INCLUDE_DIR)

FIND_PATH(PODOFO_INCLUDE_DIR podofo/podofo.h)
FIND_LIBRARY(PODOFO_LIBRARY NAMES podofo)

# handle the QUIETLY and REQUIRED arguments and set PODOFO_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PODOFO DEFAULT_MSG PODOFO_LIBRARY PODOFO_INCLUDE_DIR)

IF(PODOFO_FOUND)
  SET( PODOFO_LIBRARIES ${PODOFO_LIBRARY} )
ELSE(PODOFO_FOUND)
  SET( PODOFO_LIBRARIES )
ENDIF(PODOFO_FOUND)

MARK_AS_ADVANCED(PODOFO_LIBRARY PODOFO_INCLUDE_DIR)