From 7f6f7ab54231fd0a158129721bbe5ef8191f0587 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 31 Jul 2011 07:59:02 +0000 Subject: 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 --- kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake (limited to 'kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake') diff --git a/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake b/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake new file mode 100644 index 00000000..a021744c --- /dev/null +++ b/kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake @@ -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 + 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( ) -- cgit v1.2.1