mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 03:30:20 +00:00
Use QMobipocket >= 2 (Qt5 based)
Use the new way of finding it, as include and libraries directories are not exported, but the target information are and can be used through target_link_libraries..
This commit is contained in:
parent
34ea79c2c3
commit
58b2f0e1f0
|
@ -76,10 +76,10 @@ set_package_properties("libepub" PROPERTIES
|
|||
TYPE RECOMMENDED
|
||||
PURPOSE "Support for EPub documents in Okular.")
|
||||
|
||||
find_package(QMobipocket)
|
||||
find_package(QMobipocket "2")
|
||||
set_package_properties("libqmobipocket" PROPERTIES
|
||||
DESCRIPTION "A library for reading Mobipocket documents"
|
||||
URL "https://projects.kde.org/projects/kde/kdegraphics/kdegraphics-mobipocket"
|
||||
URL "https://commits.kde.org/kdegraphics-mobipocket"
|
||||
TYPE RECOMMENDED
|
||||
PURPOSE "Support for Mobipocket documents in Okular.")
|
||||
|
||||
|
@ -131,6 +131,6 @@ endif(EPUB_FOUND)
|
|||
|
||||
add_subdirectory(txt)
|
||||
|
||||
if(QMOBIPOCKET_FOUND)
|
||||
if(QMobipocket_FOUND)
|
||||
add_subdirectory(mobipocket)
|
||||
endif()
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
include_directories( ${QMOBIPOCKET_INCLUDE_DIR} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(okularGenerator_mobi_PART_SRCS
|
||||
|
@ -10,7 +8,7 @@ set(okularGenerator_mobi_PART_SRCS
|
|||
|
||||
okular_add_generator(okularGenerator_mobi ${okularGenerator_mobi_PART_SRCS})
|
||||
|
||||
target_link_libraries(okularGenerator_mobi okularcore ${QMOBIPOCKET_LIBRARIES} KF5::I18n Qt5::Gui)
|
||||
target_link_libraries(okularGenerator_mobi okularcore qmobipocket KF5::I18n Qt5::Gui)
|
||||
|
||||
########### install files ###############
|
||||
install( FILES okularMobi.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} )
|
||||
|
|
Loading…
Reference in a new issue