2 include_directories(${CMAKE_CURRENT_SOURCE_DIR}
3 ${CMAKE_BINARY_DIR}/kdecore/
4 ${CMAKE_SOURCE_DIR}/kdecore/
5 ${CMAKE_SOURCE_DIR}/kdecore/config
6 ${CMAKE_SOURCE_DIR}/kdecore/jobs
7 ${CMAKE_SOURCE_DIR}/kdecore/kernel
8 ${CMAKE_SOURCE_DIR}/kdecore/localization
9 ${CMAKE_SOURCE_DIR}/kdecore/io
10 ${CMAKE_SOURCE_DIR}/kdecore/services
11 ${CMAKE_SOURCE_DIR}/kdecore/sycoca
12 ${CMAKE_SOURCE_DIR}/kdecore/util
13 ${CMAKE_BINARY_DIR}/kdeui/
14 ${CMAKE_SOURCE_DIR}/kdeui/
15 ${CMAKE_SOURCE_DIR}/kdeui/actions
16 ${CMAKE_SOURCE_DIR}/kdeui/about
17 ${CMAKE_SOURCE_DIR}/kdeui/config
18 ${CMAKE_SOURCE_DIR}/kdeui/colors
19 ${CMAKE_SOURCE_DIR}/kdeui/dialogs
20 ${CMAKE_SOURCE_DIR}/kdeui/kernel
21 ${CMAKE_SOURCE_DIR}/kdeui/icons
22 ${CMAKE_SOURCE_DIR}/kdeui/paged
23 ${CMAKE_SOURCE_DIR}/kdeui/shortcuts
24 ${CMAKE_SOURCE_DIR}/kdeui/util
25 ${CMAKE_SOURCE_DIR}/kdeui/widgets
26 ${CMAKE_SOURCE_DIR}/kdeui/windowmanagement
27 ${CMAKE_SOURCE_DIR}/kio
28 ${CMAKE_SOURCE_DIR}/kio/kio
29 ${CMAKE_SOURCE_DIR}/kio/kfile
30 ${CMAKE_SOURCE_DIR}/knewstuff/
31 ${CMAKE_BINARY_DIR}/solid/
32 ${CMAKE_SOURCE_DIR}/solid/
33 ${CMAKE_SOURCE_DIR}/threadweaver/
35 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
36 # libGL needs dlopen() and friends from the dl library
37 find_library(DL_LIBRARY dl)
38 include_directories(${OPENGL_INCLUDE_DIR})
39 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
41 add_subdirectory(tests)
42 add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
44 ########### next target ###############
73 private/applethandle.cpp
74 private/datacontainer_p.cpp
75 private/desktoptoolbox.cpp
76 private/extenderapplet.cpp
77 private/extenderitemmimedata.cpp
78 private/nativetabbar.cpp
80 private/paneltoolbox.cpp
81 private/runnerjobs.cpp
85 private/windowpreview.cpp
89 scripting/appletscript.cpp
90 scripting/dataenginescript.cpp
91 scripting/runnerscript.cpp
92 scripting/scriptengine.cpp
104 widgets/flashinglabel.cpp
107 widgets/iconwidget.cpp
111 widgets/pushbutton.cpp
112 widgets/radiobutton.cpp
113 widgets/scrollbar.cpp
114 widgets/signalplotter.cpp
117 widgets/toolbutton.cpp
118 widgets/busywidget.cpp
119 widgets/scrollwidget.cpp
120 widgets/svgwidget.cpp
122 widgets/textbrowser.cpp
128 #NEPOMUK_GENERATE_FROM_ONTOLOGY(
130 # ${metadata_test_BINARY_DIR}
136 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
137 message(STATUS "Adding support for OpenGL applets to libplasma")
141 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
144 message(STATUS "Adding support for Phonon to libplasma")
147 widgets/videowidget.cpp)
150 kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
152 target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} knewstuff2
153 ${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY}
154 threadweaver ${KDE4_SOLID_LIBS} )
156 target_link_libraries(plasma ${X11_LIBRARIES})
160 target_link_libraries(plasma ${KDE4_PHONON_LIBS})
164 target_link_libraries(plasma ${DL_LIBRARY})
167 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
168 target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY})
169 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
171 target_link_libraries(plasma LINK_INTERFACE_LIBRARIES kdeui kdecore ${QT_QTGUI_LIBRARY})
173 #do NOT use GENERIC versioning -- the plasma team will take care of versioning
174 set_target_properties(plasma PROPERTIES
179 install(TARGETS plasma EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
182 ########### install files ###############
184 set(plasmagik_HEADERS
190 install(FILES ${plasmagik_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/ COMPONENT Devel)
192 set(plasma_LIB_INCLUDES
227 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
228 set(plasma_LIB_INCLUDES
229 ${plasma_LIB_INCLUDES}
231 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
234 ${plasma_LIB_INCLUDES}
235 DESTINATION ${INCLUDE_INSTALL_DIR}/plasma COMPONENT Devel)
240 widgets/flashinglabel.h
249 widgets/radiobutton.h
251 widgets/signalplotter.h
256 widgets/scrollwidget.h
258 widgets/textbrowser.h
262 DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets COMPONENT Devel)
265 scripting/appletscript.h
266 scripting/dataenginescript.h
267 scripting/runnerscript.h
268 scripting/scriptengine.h
269 DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/scripting COMPONENT Devel)
273 widgets/videowidget.h
274 DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets COMPONENT Devel)
278 servicetypes/plasma-animator.desktop
279 servicetypes/plasma-applet.desktop
280 servicetypes/plasma-containment.desktop
281 servicetypes/plasma-dataengine.desktop
282 servicetypes/plasma-packagestructure.desktop
283 servicetypes/plasma-runner.desktop
284 servicetypes/plasma-scriptengine.desktop
285 servicetypes/plasma-wallpaper.desktop
286 DESTINATION ${SERVICETYPES_INSTALL_DIR})
289 servicetypes/plasma-applet-extenderapplet.desktop
290 DESTINATION ${SERVICES_INSTALL_DIR})
292 install(FILES scripting/plasmoids.knsrc DESTINATION ${CONFIG_INSTALL_DIR})