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

View file

@ -32,6 +32,7 @@ find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 I18n CoreAddons
find_package(Libmpv) find_package(Libmpv)
set_package_properties(Libmpv PROPERTIES TYPE REQUIRED) set_package_properties(Libmpv PROPERTIES TYPE REQUIRED)
find_package(PoDoFo)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)

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)

View file

@ -37,6 +37,7 @@ mkShell rec {
# papirus-icon-theme # papirus-icon-theme
# lightly-qt # lightly-qt
podofo
mpv mpv
# libsForQt5.kconfig # libsForQt5.kconfig
# ffmpeg-full # ffmpeg-full