mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 03:30:20 +00:00
Compile++
This commit is contained in:
parent
8e8dde9756
commit
b9869e10d0
|
@ -31,6 +31,9 @@ macro_log_feature(ZLIB_FOUND "ZLib" "The Zlib compression library" "http://www.z
|
|||
macro_optional_find_package(EPub)
|
||||
macro_log_feature(EPUB_FOUND "libepub" "A library for reading EPub documents" "http://sourceforge.net/projects/ebook-tools" FALSE "" "Support for EPub documents in Okular.")
|
||||
|
||||
macro_optional_find_package(QMobipocket)
|
||||
macro_log_feature(QMOBIPOCKET_FOUND "libqmobipocket" "A library for reading Mobipocket documents" "https://projects.kde.org/projects/kde/kdegraphics/kdegraphics-mobipocket" FALSE "" "Support for Mobipocket documents in Okular.")
|
||||
|
||||
# let's enable the generators properly configured
|
||||
|
||||
if(POPPLER_FOUND AND HAVE_POPPLER_0_12_1)
|
||||
|
@ -79,3 +82,6 @@ endif(EPUB_FOUND)
|
|||
|
||||
add_subdirectory(txt)
|
||||
|
||||
if(QMOBIPOCKET_FOUND)
|
||||
add_subdirectory(mobipocket)
|
||||
endif()
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
include_directories(
|
||||
${OKULAR_INCLUDE_DIR}
|
||||
${PROJECT_SOURCE_DIR}/lib
|
||||
)
|
||||
include_directories( ${QMOBIPOCKET_INCLUDE_DIR} )
|
||||
|
||||
########### next target ###############
|
||||
|
||||
|
@ -13,7 +10,7 @@ set(okularGenerator_mobi_PART_SRCS
|
|||
|
||||
kde4_add_plugin(okularGenerator_mobi ${okularGenerator_mobi_PART_SRCS})
|
||||
|
||||
target_link_libraries(okularGenerator_mobi ${OKULAR_CORE_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} qmobipocket)
|
||||
target_link_libraries(okularGenerator_mobi okularcore ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${QMOBIPOCKET_LIBRARIES})
|
||||
|
||||
install(TARGETS okularGenerator_mobi DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include <QtGui/QTextDocumentFragment>
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QFile>
|
||||
#include "mobipocket.h"
|
||||
|
||||
#include <klocale.h>
|
||||
#include <okular/core/action.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <okular/core/document.h>
|
||||
|
||||
#include "mobidocument.h"
|
||||
#include "mobipocket.h"
|
||||
#include <qmobipocket/mobipocket.h>
|
||||
|
||||
|
||||
namespace Mobi {
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
* (at your option) any later version. *
|
||||
***************************************************************************/
|
||||
#include "mobidocument.h"
|
||||
#include "mobipocket.h"
|
||||
#include "qfilestream.h"
|
||||
#include <qmobipocket/mobipocket.h>
|
||||
#include <qmobipocket/qfilestream.h>
|
||||
#include <QtGui/QColor>
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QRegExp>
|
||||
|
|
Loading…
Reference in a new issue