Require KHtml only when building CHM generator

Reviewed by: aacid

Differential Revision: D4507
This commit is contained in:
Christoph Feck 2017-02-10 02:57:06 +01:00
parent d2578c624a
commit 7a013e3869
2 changed files with 7 additions and 2 deletions

View file

@ -56,7 +56,6 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
Parts
ThreadWeaver
Wallet
KHtml
WindowSystem
)
find_package(Phonon4Qt5 CONFIG REQUIRED)

View file

@ -34,6 +34,12 @@ set_package_properties("CHM" PROPERTIES
TYPE RECOMMENDED
PURPOSE "Support CHM files in okular.")
find_package(KF5KHtml)
set_package_properties("KF5KHtml" PROPERTIES
DESCRIPTION "HTML rendering library"
TYPE RECOMMENDED
PURPOSE "Support CHM files in okular.")
find_package(DjVuLibre "3.5.17")
set_package_properties("DjVuLibre" PROPERTIES
DESCRIPTION "A library for dealing with DjVu formatted files"
@ -97,7 +103,7 @@ if(KF5KExiv2_FOUND)
add_subdirectory( kimgio )
endif()
if(CHM_FOUND)
if(CHM_FOUND AND KF5KHtml_FOUND)
add_subdirectory( chm )
endif(CHM_FOUND)