summaryrefslogtreecommitdiff
path: root/cmake/modules/FindPoDoFo.cmake
diff options
context:
space:
mode:
authorAndrew Shadura <andrewsh@debian.org>2018-04-25 14:57:03 +0200
committerAndrew Shadura <andrewsh@debian.org>2018-04-25 15:38:32 +0200
commit01522f068cec8b01bfbb83f060ad0b58aab56204 (patch)
tree807187ae8ec03d96fe2d5e781614a927123ee9e9 /cmake/modules/FindPoDoFo.cmake
parenta38b86d1b773dc7c781335419c86f79558c210b8 (diff)
parent3259ab99df8d8746a46ca7469635751f604e42fc (diff)
Updated version 3.10.4+ds1 from 'upstream/3.10.4+ds1'
Diffstat (limited to 'cmake/modules/FindPoDoFo.cmake')
-rw-r--r--cmake/modules/FindPoDoFo.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake/modules/FindPoDoFo.cmake b/cmake/modules/FindPoDoFo.cmake
new file mode 100644
index 0000000..bc1a629
--- /dev/null
+++ b/cmake/modules/FindPoDoFo.cmake
@@ -0,0 +1,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)