You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
987 B
22 lines
987 B
13 years ago
|
# Poppler
|
||
12 years ago
|
pkg_search_module( POPPLER poppler )
|
||
|
if( POPPLER_FOUND )
|
||
|
set( HAVE_POPPLER 1 )
|
||
|
else( )
|
||
|
tde_message_fatal( "poppler is required, but was not found on your system" )
|
||
13 years ago
|
endif( )
|
||
|
|
||
13 years ago
|
tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
|
||
12 years ago
|
set( CMAKE_REQUIRED_INCLUDES ${DBUS_TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS} ${QT_INCLUDE_DIRS} ${POPPLER_INCLUDE_DIRS})
|
||
|
set( CMAKE_REQUIRED_LIBRARIES ${DBUS_TQT_LDFLAGS} ${TQT_LDFLAGS} ${QT_LDFLAGS} ${POPPLER_LDFLAGS} )
|
||
13 years ago
|
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 )
|
||
13 years ago
|
check_cxx_source_compiles("
|
||
|
#include <poppler/PSOutputDev.h>
|
||
|
int main(int, char**) { int a; int b; PSOutputDev *psOut = new PSOutputDev(\"test\", (PDFDoc*)0, NULL, 0, 0, psModePS, a, b); } "
|
||
|
HAVE_POPPLER_020 )
|
||
13 years ago
|
tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
|
||
13 years ago
|
|