updating cmake to include podofo

This commit is contained in:
Chris Cochrun 2022-09-23 13:28:44 -05:00
parent 87854d897e
commit 15600eecd2
3 changed files with 30 additions and 0 deletions

28
cmake/FindPoDoFo.cmake Normal file
View file

@ -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)