1 find_package(KDE4 REQUIRED)
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 ###############
24 appletbrowser/customdragtreeview.cpp
25 appletbrowser/kcategorizeditemsview.cpp
26 appletbrowser/kcategorizeditemsviewdelegate.cpp
27 appletbrowser/kcategorizeditemsviewmodels.cpp
28 appletbrowser/openwidgetassistant.cpp
29 appletbrowser/plasmaappletitemmodel.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
57 scripting/appletscript.cpp
58 scripting/dataenginescript.cpp
59 scripting/runnerscript.cpp
60 scripting/scriptengine.cpp
66 widgets/progressbar.cpp
67 widgets/pushbutton.cpp
68 widgets/radiobutton.cpp
69 # widgets/rectangle.cpp
71 widgets/signalplotter.cpp
78 appletbrowser/kcategorizeditemsviewbase.ui
81 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
82 MESSAGE(STATUS "Adding support for OpenGL applets to libplasma")
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
108 install(FILES ${plasmagik_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/)
110 set(plasma_LIB_INCLUDES
125 scripting/appletscript.h
126 scripting/dataenginescript.h
127 scripting/runnerscript.h
128 scripting/scriptengine.h
138 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
139 set(plasma_LIB_INCLUDES
140 ${plasma_LIB_INCLUDES}
142 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
145 ${plasma_LIB_INCLUDES}
146 DESTINATION ${INCLUDE_INSTALL_DIR}/plasma)
153 widgets/progressbar.h
156 widgets/radiobutton.h
157 # widgets/rectangle.h
159 widgets/signalplotter.h
161 DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets)
164 layouts/borderlayout.h
169 # layouts/layoutanimator.h
170 # layouts/layoutitem.h
171 DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/layouts)
174 scripting/appletscript.h
175 scripting/dataenginescript.h
176 scripting/runnerscript.h
177 scripting/scriptengine.h
178 DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/scripting)
182 includes/AbstractRunner
185 includes/AppletBrowser
193 includes/PackageStructure
195 includes/DataContainer
197 includes/DataEngineManager
198 includes/ScriptEngine
199 includes/SearchContext
204 includes/PackageMetadata
206 DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma)
208 if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
211 DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma)
212 endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
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})