add a small widget for showing an animation from the "animations" category of the...
[kdegraphics.git] / okular / CMakeLists.txt
blob54a7cc4c03e2e144b063bddeeabe660e86d4c0b7
1 project(okular)
2 add_subdirectory( ui )
3 add_subdirectory( shell )
4 add_subdirectory( generators )
6 include(OkularConfigureChecks.cmake)
8 if(NOT WIN32)
9  set(MATH_LIB m)
10 else(NOT WIN32)
11  set(MATH_LIB)
12 endif(NOT WIN32)
13 include_directories(
14    ${CMAKE_CURRENT_SOURCE_DIR}
15    ${QIMAGEBLITZ_INCLUDES}
19 # okularcore
21 set(okularcore_SRCS
22    core/action.cpp
23    core/annotations.cpp
24    core/area.cpp
25    core/audioplayer.cpp
26    core/bookmarkmanager.cpp
27    core/chooseenginedialog.cpp
28    core/document.cpp
29    core/fontinfo.cpp
30    core/form.cpp
31    core/generator.cpp
32    core/generator_p.cpp
33    core/misc.cpp
34    core/movie.cpp
35    core/observer.cpp
36    core/page.cpp
37    core/pagecontroller.cpp
38    core/pagesize.cpp
39    core/pagetransition.cpp
40    core/rotationjob.cpp
41    core/scripter.cpp
42    core/sound.cpp
43    core/sourcereference.cpp
44    core/textdocumentgenerator.cpp
45    core/textpage.cpp
46    core/utils.cpp
47    core/view.cpp
48    core/fileprinter.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
60 install( FILES
61            core/action.h
62            core/annotations.h
63            core/area.h
64            core/document.h
65            core/fontinfo.h
66            core/form.h
67            core/generator.h
68            core/global.h
69            core/okular_export.h
70            core/page.h
71            core/pagesize.h
72            core/pagetransition.h
73            core/sound.h
74            core/sourcereference.h
75            core/textdocumentgenerator.h
76            core/textpage.h
77            core/utils.h
78            core/version.h
79            core/fileprinter.h
80          DESTINATION ${INCLUDE_INSTALL_DIR}/okular/core COMPONENT Devel)
82 install( FILES
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
98 IF(APPLE)
99     SET(OKULAR_IOKIT "-framework IOKit" CACHE STRING "Apple IOKit framework")
100 ENDIF(APPLE)
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})
111 # okularpart
113 set(okularpart_SRCS
114    part.cpp
115    extensions.cpp
116    conf/preferencesdialog.cpp
117    conf/dlgaccessibility.cpp
118    conf/dlgdebug.cpp
119    conf/dlgeditor.cpp
120    conf/dlggeneral.cpp
121    conf/dlgidentity.cpp
122    conf/dlgperformance.cpp
123    conf/dlgpresentation.cpp
124    ui/embeddedfilesdialog.cpp
125    ui/animatedwidget.cpp
126    ui/annotwindow.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
133    ui/bookmarklist.cpp
134    ui/fileprinterpreview.cpp
135    ui/findbar.cpp
136    ui/formwidgets.cpp
137    ui/guiutils.cpp
138    ui/ktreeviewsearchline.cpp
139    ui/minibar.cpp
140    ui/pageitemdelegate.cpp
141    ui/pagepainter.cpp
142    ui/pagesizelabel.cpp
143    ui/pageviewannotator.cpp
144    ui/pageview.cpp
145    ui/pageviewutils.cpp
146    ui/presentationsearchbar.cpp
147    ui/presentationwidget.cpp
148    ui/propertiesdialog.cpp
149    ui/searchlineedit.cpp
150    ui/searchwidget.cpp
151    ui/sidebar.cpp
152    ui/side_reviews.cpp
153    ui/thumbnaillist.cpp
154    ui/toc.cpp
155    ui/tocmodel.cpp
156    ui/toolaction.cpp
157    ui/tts.cpp
158    ui/videowidget.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 )