@ -162,12 +162,102 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules)
find_package ( ZLIB REQUIRED )
find_package ( ZLIB REQUIRED )
# T h i s i s h e r e i n s t e a d o f i n g e n e r a t o r s s i n c e w e u s e if ( Poppler_Qt5_FOUND ) i n a u t o t e s t s /
find_package ( Poppler "0.86.0" COMPONENTS Qt5 )
find_package ( Poppler "0.86.0" COMPONENTS Qt5 )
set_package_properties ( "Poppler" PROPERTIES
set_package_properties ( "Poppler" PROPERTIES
T Y P E R E C O M M E N D E D
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r P D F f i l e s i n o k u l a r . " )
P U R P O S E " S u p p o r t f o r P D F f i l e s i n o k u l a r . " )
find_package ( Freetype )
set_package_properties ( "FreeType" PROPERTIES
D E S C R I P T I O N " A f o n t r e n d e r i n g e n g i n e "
U R L " h t t p s : / / w w w . f r e e t y p e . o r g "
T Y P E R E C O M M E N D E D
P U R P O S E " P r o v i d e s f r e e t y p e f o n t s u p p o r t i n t h e o k u l a r D V I g e n e r a t o r . " )
find_package ( TIFF )
set_package_properties ( "libTIFF" PROPERTIES
D E S C R I P T I O N " A l i b r a r y f o r r e a d i n g a n d w r i t i n g T I F F f o r m a t t e d f i l e s , "
U R L " h t t p : / / w w w . l i b t i f f . o r g "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r T I F F f i l e s i n o k u l a r . " )
find_package ( JPEG )
set_package_properties ( "JPEG" PROPERTIES
D E S C R I P T I O N " A l i b r a r y f o r r e a d i n g a n d w r i t i n g J P E G i m a g e f i l e s . "
U R L " h t t p s : / / w w w . i j g . o r g "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r P a l m D B d o c u m e n t s i n o k u l a r . " )
set ( LIBSPECTRE_MINIMUM_VERSION "0.2" )
find_package ( LibSpectre "${LIBSPECTRE_MINIMUM_VERSION}" )
set_package_properties ( LibSpectre PROPERTIES
D E S C R I P T I O N " A P o s t S c r i p t r e n d e r i n g l i b r a r y "
U R L " h t t p s : / / l i b s p e c t r e . f r e e d e s k t o p . o r g "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r P S f i l e s i n o k u l a r . " )
find_package ( KF5KExiv2 CONFIG )
set_package_properties ( "LibKExiv2" PROPERTIES
D E S C R I P T I O N " W r a p p e r a r o u n d E x i v 2 l i b r a r y "
U R L " h t t p s : / / c o m m i t s . k d e . o r g / l i b k e x i v 2 "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r i m a g e f i l e s " )
find_package ( CHM )
set_package_properties ( "CHM" PROPERTIES
D E S C R I P T I O N " A l i b r a r y f o r d e a l i n g w i t h M i c r o s o f t I T S S / C H M f o r m a t f i l e s "
U R L " h t t p : / / w w w . j e d r e a . c o m / c h m l i b "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t C H M f i l e s i n o k u l a r . " )
find_package ( KF5KHtml CONFIG )
set_package_properties ( "KF5KHtml" PROPERTIES
D E S C R I P T I O N " H T M L r e n d e r i n g l i b r a r y "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t C H M f i l e s i n o k u l a r . " )
find_package ( LibZip )
set_package_properties ( "LibZip" PROPERTIES
D E S C R I P T I O N " A l i b r a r y f o r r e a d i n g , c r e a t i n g , a n d m o d i f y i n g z i p a r c h i v e s "
U R L " h t t p s : / / l i b z i p . o r g / "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t C H M f i l e s i n o k u l a r . " )
find_package ( DjVuLibre "3.5.17" )
set_package_properties ( "DjVuLibre" PROPERTIES
D E S C R I P T I O N " A l i b r a r y f o r d e a l i n g w i t h D j V u f o r m a t t e d f i l e s "
U R L " h t t p s : / / d j v u l i b r e . d j v u z o n e . o r g "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r D j V u f i l e s i n o k u l a r . " )
find_package ( ZLIB )
set_package_properties ( "ZLib" PROPERTIES
D E S C R I P T I O N " T h e Z l i b c o m p r e s s i o n l i b r a r y "
U R L " h t t p s : / / w w w . z l i b . n e t "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r P l u c k e r f i l e s i n O k u l a r . " )
find_package ( EPub )
set_package_properties ( "libepub" PROPERTIES
D E S C R I P T I O N " A l i b r a r y f o r r e a d i n g E P u b d o c u m e n t s "
U R L " h t t p : / / s o u r c e f o r g e . n e t / p r o j e c t s / e b o o k - t o o l s "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r E P u b d o c u m e n t s i n O k u l a r . " )
find_package ( QMobipocket "2" CONFIG )
set_package_properties ( "libqmobipocket" PROPERTIES
D E S C R I P T I O N " A l i b r a r y f o r r e a d i n g M o b i p o c k e t d o c u m e n t s "
U R L " h t t p s : / / c o m m i t s . k d e . o r g / k d e g r a p h i c s - m o b i p o c k e t "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r M o b i p o c k e t d o c u m e n t s i n O k u l a r . " )
find_package ( Discount )
set_package_properties ( "Discount" PROPERTIES
D E S C R I P T I O N " A l i b r a r y t h a t g i v e s y o u f o r m a t t i n g f u n c t i o n s s u i t a b l e f o r m a r k i n g d o w n e n t i r e d o c u m e n t s o r l i n e s o f t e x t "
U R L " h t t p s : / / w w w . p e l l . p o r t l a n d . o r . u s / ~ o r c / C o d e / d i s c o u n t / "
T Y P E R E C O M M E N D E D
P U R P O S E " S u p p o r t f o r M a r k d o w n d o c u m e n t s i n O k u l a r . " )
add_definitions ( -DQT_USE_QSTRINGBUILDER )
add_definitions ( -DQT_USE_QSTRINGBUILDER )
add_definitions ( -DTRANSLATION_DOMAIN= "okular" )
add_definitions ( -DTRANSLATION_DOMAIN= "okular" )
add_definitions ( -DQT_NO_URL_CAST_FROM_STRING )
add_definitions ( -DQT_NO_URL_CAST_FROM_STRING )
@ -182,9 +272,6 @@ if(BUILD_MOBILE AND KF5Kirigami2_VERSION VERSION_LESS "5.85")
set ( BUILD_MOBILE OFF )
set ( BUILD_MOBILE OFF )
endif ( )
endif ( )
if ( BUILD_MOBILE )
add_subdirectory ( mobile )
endif ( )
option ( BUILD_COVERAGE "Build the project with gcov support" OFF )
option ( BUILD_COVERAGE "Build the project with gcov support" OFF )
if ( BUILD_COVERAGE )
if ( BUILD_COVERAGE )
@ -198,6 +285,11 @@ if(BUILD_DESKTOP)
add_subdirectory ( shell )
add_subdirectory ( shell )
endif ( )
endif ( )
add_subdirectory ( generators )
add_subdirectory ( generators )
if ( BUILD_MOBILE )
add_subdirectory ( mobile )
endif ( )
if ( BUILD_TESTING )
if ( BUILD_TESTING )
add_subdirectory ( autotests )
add_subdirectory ( autotests )
endif ( )
endif ( )