mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
Require KHtml only when building CHM generator
Reviewed by: aacid Differential Revision: D4507
This commit is contained in:
parent
d2578c624a
commit
7a013e3869
|
@ -56,7 +56,6 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
|
|||
Parts
|
||||
ThreadWeaver
|
||||
Wallet
|
||||
KHtml
|
||||
WindowSystem
|
||||
)
|
||||
find_package(Phonon4Qt5 CONFIG REQUIRED)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue