Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / libs / plasma / CMakeLists.txt
blob5258128eab203f1fb636c60d25261a5204840be7
1 find_package(KDE4 REQUIRED)
2 include (KDE4Defaults)
4 include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs ${CMAKE_CURRENT_SOURCE_DIR}/.. ${KDE4_INCLUDES} ${OPENGL_INCLUDE_DIR})
6 add_subdirectory(widgets)
7 add_subdirectory(tests)
8 add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
10 ########### next target ###############
12 set(plasmagik_SRCS
13     packagemetadata.cpp
14     packagestructure.cpp
15     package.cpp
16     )
18 set(plasma_LIB_SRCS
19     ${plasmagik_SRCS}
20     abstractrunner.cpp
21     animator.cpp
22     applet.cpp
23     appletbrowser.cpp
24     appletbrowser/customdragtreeview.cpp
25     appletbrowser/kcategorizeditemsview.cpp
26     appletbrowser/kcategorizeditemsviewdelegate.cpp
27     appletbrowser/kcategorizeditemsviewmodels.cpp
28     appletbrowser/openwidgetassistant.cpp
29     appletbrowser/plasmaappletitemmodel.cpp
30     applethandle.cpp
31     configxml.cpp
32     containment.cpp
33     corona.cpp
34     datacontainer.cpp
35     dataengine.cpp
36     dataenginemanager.cpp
37     dialog.cpp
38     layouts/borderlayout.cpp
39     layouts/freelayout.cpp
40     layouts/nodelayout.cpp
41     layouts/flowlayout.cpp
42     layouts/fliplayout.cpp
43 #    layouts/layoutanimator.cpp
44     packages.cpp
45     phase.cpp
46     plasma.cpp
47     plasma_export.h
48     searchmatch.cpp
49     searchcontext.cpp
50     shadowitem.cpp
51     svg.cpp
52     svgpanel.cpp
53     theme.cpp
54     desktoptoolbox.cpp
55     uiloader.cpp
56     view.cpp
57     scripting/appletscript.cpp
58     scripting/dataenginescript.cpp
59     scripting/runnerscript.cpp
60     scripting/scriptengine.cpp
61     widgets/checkbox.cpp
62     widgets/flash.cpp
63     widgets/icon.cpp
64     widgets/label.cpp
65     widgets/lineedit.cpp
66     widgets/progressbar.cpp
67     widgets/pushbutton.cpp
68     widgets/radiobutton.cpp
69 #    widgets/rectangle.cpp
70     widgets/widget.cpp
71     widgets/signalplotter.cpp
72     widgets/meter.cpp
73     widgets/tooltip.cpp
76 kde4_add_ui_files (
77     plasma_LIB_SRCS
78     appletbrowser/kcategorizeditemsviewbase.ui
81 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
82 MESSAGE(STATUS "Adding support for OpenGL applets to libplasma")
83 set(plasma_LIB_SRCS
84     ${plasma_LIB_SRCS}
85     glapplet.cpp)
86 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
88 kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
90 target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} ${QT_QTUITOOLS_LIBRARY})
92 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
93 target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY})
94 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
96 set_target_properties(plasma PROPERTIES VERSION 1.0.0 SOVERSION 1)
97 install(TARGETS plasma DESTINATION ${LIB_INSTALL_DIR})
100 ########### install files ###############
102 set(plasmagik_HEADERS
103     packagemetadata.h
104     packagestructure.h
105     package.h
106     )
108 install(FILES ${plasmagik_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/)
110 set(plasma_LIB_INCLUDES
111     abstractrunner.h
112     animator.h
113     applet.h
114     appletbrowser.h
115     configxml.h
116     containment.h
117     corona.h
118     datacontainer.h
119     dataengine.h
120     dataenginemanager.h
121     dialog.h
122     phase.h
123     plasma.h
124     plasma_export.h
125     scripting/appletscript.h
126     scripting/dataenginescript.h
127     scripting/runnerscript.h
128     scripting/scriptengine.h
129     searchmatch.h
130     searchcontext.h
131     shadowitem_p.h
132     svg.h
133     svgpanel.h
134     theme.h
135     uiloader.h
136     view.h)
138 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
139 set(plasma_LIB_INCLUDES
140     ${plasma_LIB_INCLUDES}
141     glapplet.h)
142 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
144 install(FILES
145         ${plasma_LIB_INCLUDES}
146         DESTINATION ${INCLUDE_INSTALL_DIR}/plasma)
148 install(FILES
149     widgets/flash.h
150     widgets/icon.h
151     widgets/label.h
152     widgets/lineedit.h
153     widgets/progressbar.h
154     widgets/pushbutton.h
155     widgets/checkbox.h
156     widgets/radiobutton.h
157 #    widgets/rectangle.h
158     widgets/widget.h
159     widgets/signalplotter.h
160     widgets/meter.h
161     DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets)
163 install(FILES
164     layouts/borderlayout.h
165     layouts/freelayout.h
166     layouts/nodelayout.h
167     layouts/flowlayout.h
168     layouts/fliplayout.h
169 #    layouts/layoutanimator.h
170 #    layouts/layoutitem.h
171     DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/layouts)
173 install(FILES
174     scripting/appletscript.h
175     scripting/dataenginescript.h
176     scripting/runnerscript.h
177     scripting/scriptengine.h
178     DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/scripting)
181 install(FILES
182     includes/AbstractRunner
183     includes/Animator
184     includes/Applet
185     includes/AppletBrowser
186     includes/ConfigXml
187     includes/Corona
188     includes/Containment
189     includes/Dialog
190     includes/Phase
191     includes/Plasma
192     includes/Package
193     includes/PackageStructure
194     includes/Theme
195     includes/DataContainer
196     includes/DataEngine
197     includes/DataEngineManager
198     includes/ScriptEngine
199     includes/SearchContext
200     includes/SearchMatch
201     includes/Svg
202     includes/SvgPanel
203     includes/UiLoader
204     includes/PackageMetadata
205     includes/View
206     DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma)
208 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
209 install(FILES
210     includes/GLApplet
211     DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma)
212 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
215 install(FILES
216     servicetypes/plasma-animator.desktop
217     servicetypes/plasma-applet.desktop
218     servicetypes/plasma-dataengine.desktop
219     servicetypes/plasma-packagestructure.desktop
220     servicetypes/plasma-runner.desktop
221     servicetypes/plasma-scriptengine.desktop
222     DESTINATION ${SERVICETYPES_INSTALL_DIR})