blob: 99a48c8ee9e488f8b7964917134173a19b5f8ac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Poppler
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" )
endif( )
string( REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)"
POPPLER_VERSION_SPLIT ${POPPLER_VERSION} )
set( POPPLER_VERSION_MAJOR ${CMAKE_MATCH_1} )
set( POPPLER_VERSION_MINOR ${CMAKE_MATCH_2} )
set( POPPLER_VERSION_PATCH ${CMAKE_MATCH_3} )
math( EXPR POPPLER_VERSION_C "(${POPPLER_VERSION_MAJOR}*1000000) + (${POPPLER_VERSION_MINOR}*1000) + ${POPPLER_VERSION_PATCH}" )
set( POPPLER_VERSION_C ${POPPLER_VERSION_C} CACHE INTERNAL "Poppler library version as code number" )
if( NOT POPPLER_VERSION_C LESS 21012000 )
set( POPPLER_CXX_FEATURES cxx_std_17 CACHE INTERNAL "C++ standard required by Poppler" )
endif()
|