CMakeLists.txt 1.17 KB
Newer Older
Marco Martin's avatar
Marco Martin committed
1
2
set(okular_SRCS
    okularplugin.cpp
3
4
5
6
    ${CMAKE_SOURCE_DIR}/part/guiutils.cpp
    ${CMAKE_SOURCE_DIR}/part/tocmodel.cpp
    ${CMAKE_SOURCE_DIR}/part/pagepainter.cpp
    ${CMAKE_SOURCE_DIR}/part/debug_ui.cpp
Marco Martin's avatar
Marco Martin committed
7
8
9
    pageitem.cpp
    documentitem.cpp
    thumbnailitem.cpp
10
    okularsingleton.cpp
Marco Martin's avatar
Marco Martin committed
11
    )
12

13
kconfig_add_kcfg_files(okular_SRCS GENERATE_MOC ${CMAKE_SOURCE_DIR}/conf/settings_mobile.kcfgc)
14

Laurent Montel's avatar
Laurent Montel committed
15
add_library(okularplugin SHARED ${okular_SRCS})
16
set_target_properties(okularplugin PROPERTIES COMPILE_DEFINITIONS "okularpart_EXPORTS")
Marco Martin's avatar
Marco Martin committed
17
target_link_libraries(okularplugin
18
19
20
21
22
        Qt5::Quick
        Qt5::Qml
        Qt5::Core
        Qt5::Xml
        Qt5::Svg
23
24
25
        KF5::Bookmarks
        KF5::IconThemes
        KF5::I18n
26
        KF5::Service
Marco Martin's avatar
Marco Martin committed
27
28
29
        okularcore
        )

30
31
32
33
if(ANDROID)
    target_link_libraries(okularplugin Qt5::AndroidExtras)
endif()

Laurent Montel's avatar
Laurent Montel committed
34
35
install(TARGETS okularplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/okular)
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/okular)
36
37
install(FILES DocumentView.qml DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/okular)
install(FILES private/PageView.qml DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/okular/private)
Marco Martin's avatar
Marco Martin committed
38
39

#add_subdirectory(test)