Add test for poppler >= 0.16 due to API change

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1244150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 83b9df8edf
commit 7f6f7ab542

@ -23,7 +23,7 @@ link_directories(
#### kfaximage (library) ######################## #### kfaximage (library) ########################
tde_add_library( kfaximage AUTOMOC tde_add_library( kfaximage STATIC_PIC AUTOMOC
SOURCES kfaximage.cpp faxexpand.cpp faxinit.cpp SOURCES kfaximage.cpp faxexpand.cpp faxinit.cpp
) )

@ -11,6 +11,10 @@
project( libpoppler-tqt ) project( libpoppler-tqt )
##### configure checks ##########################
include( ConfigureChecks.cmake )
include_directories( include_directories(
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}

@ -0,0 +1,12 @@
tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
set( CMAKE_REQUIRED_INCLUDES ${DBUS_TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS} ${QT_INCLUDE_DIRS})
set( CMAKE_REQUIRED_LIBRARIES ${DBUS_TQT_LDFLAGS} ${TQT_LDFLAGS} ${QT_LDFLAGS} "-lpoppler" )
check_cxx_source_compiles("
#include <poppler/PSOutputDev.h>
int main(int, char**) { int a; int b; PSOutputDev *psOut = new PSOutputDev(\"test\", (PDFDoc*)0, (XRef*)0, (Catalog*)0, NULL, 0, 0, psModePS, a, b); } "
HAVE_POPPLER_016 )
tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
if( HAVE_POPPLER_016 )
set( POPPLER_016 1 )
endif( )
Loading…
Cancel
Save