3 add_subdirectory( shell )
4 add_subdirectory( generators )
6 include(OkularConfigureChecks.cmake)
14 ${CMAKE_CURRENT_SOURCE_DIR}
15 ${QIMAGEBLITZ_INCLUDES}
26 core/bookmarkmanager.cpp
27 core/chooseenginedialog.cpp
37 core/pagecontroller.cpp
39 core/pagetransition.cpp
43 core/sourcereference.cpp
44 core/textdocumentgenerator.cpp
49 core/script/executor_kjs.cpp
50 core/script/kjs_app.cpp
51 core/script/kjs_console.cpp
52 core/script/kjs_data.cpp
53 core/script/kjs_document.cpp
54 core/script/kjs_fullscreen.cpp
55 core/script/kjs_field.cpp
56 core/script/kjs_spell.cpp
57 core/script/kjs_util.cpp
74 core/sourcereference.h
75 core/textdocumentgenerator.h
80 DESTINATION ${INCLUDE_INSTALL_DIR}/okular/core COMPONENT Devel)
83 interfaces/configinterface.h
84 interfaces/guiinterface.h
85 interfaces/printinterface.h
86 DESTINATION ${INCLUDE_INSTALL_DIR}/okular/interfaces COMPONENT Devel)
88 kde4_add_ui_files(okularcore_SRCS
89 core/chooseenginewidget.ui
92 kde4_add_kcfg_files(okularcore_SRCS conf/settings.kcfgc )
95 kde4_add_library(okularcore SHARED ${okularcore_SRCS})
97 # Special handling for linking okularcore on OSX/Apple
99 SET(OKULAR_IOKIT "-framework IOKit" CACHE STRING "Apple IOKit framework")
102 target_link_libraries(okularcore ${OKULAR_IOKIT} ${KDE4_KIO_LIBS} ${KDE4_PHONON_LIBRARY} ${KDE4_KJSAPI_LIBRARY} ${MATH_LIB} ${KDE4_THREADWEAVER_LIBRARY} )
104 set_target_properties(okularcore PROPERTIES VERSION 1.2.0 SOVERSION 1 )
106 install(TARGETS okularcore ${INSTALL_TARGETS_DEFAULT_ARGS} )
108 install(FILES conf/okular.kcfg DESTINATION ${KCFG_INSTALL_DIR})
109 install(FILES core/okularGenerator.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR})
116 conf/preferencesdialog.cpp
117 conf/dlgaccessibility.cpp
122 conf/dlgperformance.cpp
123 conf/dlgpresentation.cpp
124 ui/embeddedfilesdialog.cpp
125 ui/animatedwidget.cpp
127 ui/annotationmodel.cpp
128 ui/annotationpopup.cpp
129 ui/annotationpropertiesdialog.cpp
130 ui/annotationproxymodels.cpp
131 ui/annotationtools.cpp
132 ui/annotationwidgets.cpp
134 ui/fileprinterpreview.cpp
138 ui/ktreeviewsearchline.cpp
140 ui/pageitemdelegate.cpp
143 ui/pageviewannotator.cpp
146 ui/presentationsearchbar.cpp
147 ui/presentationwidget.cpp
148 ui/propertiesdialog.cpp
149 ui/searchlineedit.cpp
161 kde4_add_ui_files(okularpart_SRCS
162 conf/dlgaccessibilitybase.ui
163 conf/dlgeditorbase.ui
164 conf/dlggeneralbase.ui
165 conf/dlgidentitybase.ui
166 conf/dlgperformancebase.ui
167 conf/dlgpresentationbase.ui
170 qt4_add_dbus_interfaces(okularpart_SRCS ${KDE4_DBUS_INTERFACES_DIR}/org.kde.KSpeech.xml)
172 kde4_add_plugin(okularpart ${okularpart_SRCS})
174 target_link_libraries(okularpart okularcore ${KDE4_KPARTS_LIBS} ${KDE4_KUTILS_LIBS} ${KDE4_KNEWSTUFF2_LIBS} ${MATH_LIB} ${QIMAGEBLITZ_LIBRARIES} ${KDE4_PHONON_LIBRARY})
176 install(TARGETS okularpart DESTINATION ${PLUGIN_INSTALL_DIR})
179 ########### install files ###############
181 install( FILES okular_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
182 install( FILES part.rc DESTINATION ${DATA_INSTALL_DIR}/okular )