2008-01-25 18:10:58 +01:00
|
|
|
find_package(KDE4 REQUIRED)
|
|
|
|
include (KDE4Defaults)
|
2007-07-25 02:25:17 +02:00
|
|
|
|
2008-08-22 12:34:37 +02:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs ${CMAKE_CURRENT_SOURCE_DIR}/.. ${KDE4_INCLUDES})
|
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2007-11-16 15:42:04 +01:00
|
|
|
|
2008-06-18 01:21:39 +02:00
|
|
|
add_subdirectory(tests)
|
2008-01-08 00:33:55 +01:00
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
|
2007-08-06 01:05:57 +02:00
|
|
|
|
2006-02-28 09:01:15 +01:00
|
|
|
########### next target ###############
|
|
|
|
|
2007-06-17 02:25:16 +02:00
|
|
|
set(plasmagik_SRCS
|
|
|
|
packagemetadata.cpp
|
|
|
|
packagestructure.cpp
|
|
|
|
package.cpp
|
|
|
|
)
|
|
|
|
|
2007-05-20 23:05:27 +02:00
|
|
|
set(plasma_LIB_SRCS
|
2007-06-17 02:25:16 +02:00
|
|
|
${plasmagik_SRCS}
|
2007-06-08 07:24:19 +02:00
|
|
|
abstractrunner.cpp
|
2008-04-25 05:17:00 +02:00
|
|
|
animationdriver.cpp
|
2008-04-25 05:23:31 +02:00
|
|
|
animator.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
applet.cpp
|
2007-09-27 21:55:18 +02:00
|
|
|
appletbrowser.cpp
|
2008-02-29 09:10:14 +01:00
|
|
|
appletbrowser/customdragtreeview.cpp
|
2007-09-27 20:59:53 +02:00
|
|
|
appletbrowser/kcategorizeditemsview.cpp
|
|
|
|
appletbrowser/kcategorizeditemsviewdelegate.cpp
|
|
|
|
appletbrowser/kcategorizeditemsviewmodels.cpp
|
2008-02-29 09:10:14 +01:00
|
|
|
appletbrowser/openwidgetassistant.cpp
|
2007-09-27 20:59:53 +02:00
|
|
|
appletbrowser/plasmaappletitemmodel.cpp
|
2007-07-18 11:34:18 +02:00
|
|
|
configxml.cpp
|
2007-09-18 23:25:15 +02:00
|
|
|
containment.cpp
|
2008-08-18 15:20:15 +02:00
|
|
|
context.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
corona.cpp
|
2007-07-23 02:22:16 +02:00
|
|
|
datacontainer.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
dataengine.cpp
|
|
|
|
dataenginemanager.cpp
|
2008-05-18 06:28:58 +02:00
|
|
|
delegate.cpp
|
2007-12-05 23:32:45 +01:00
|
|
|
dialog.cpp
|
2008-08-02 19:46:32 +02:00
|
|
|
extender.cpp
|
|
|
|
extenderitem.cpp
|
2008-07-04 01:50:13 +02:00
|
|
|
paintutils.cpp
|
2008-05-19 08:12:48 +02:00
|
|
|
panelsvg.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
plasma.cpp
|
2008-07-17 11:30:57 +02:00
|
|
|
popupapplet.cpp
|
2008-07-30 22:35:42 +02:00
|
|
|
private/applethandle.cpp
|
|
|
|
private/datacontainer_p.cpp
|
|
|
|
private/desktoptoolbox.cpp
|
2008-08-04 07:30:32 +02:00
|
|
|
private/nativetabbar.cpp
|
2008-07-30 22:35:42 +02:00
|
|
|
private/packages.cpp
|
|
|
|
private/paneltoolbox.cpp
|
2008-08-13 16:47:27 +02:00
|
|
|
private/style.cpp
|
2008-07-30 22:35:42 +02:00
|
|
|
private/toolbox.cpp
|
|
|
|
private/tooltip.cpp
|
2008-08-23 18:17:04 +02:00
|
|
|
private/windowpreview.cpp
|
2008-05-02 20:46:05 +02:00
|
|
|
querymatch.cpp
|
2008-05-01 20:40:10 +02:00
|
|
|
runnercontext.cpp
|
2008-05-01 09:51:59 +02:00
|
|
|
runnermanager.cpp
|
2008-05-19 20:17:12 +02:00
|
|
|
scripting/appletscript.cpp
|
|
|
|
scripting/dataenginescript.cpp
|
|
|
|
scripting/runnerscript.cpp
|
|
|
|
scripting/scriptengine.cpp
|
2008-05-18 06:28:58 +02:00
|
|
|
service.cpp
|
|
|
|
servicejob.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
svg.cpp
|
|
|
|
theme.cpp
|
2008-07-16 17:17:44 +02:00
|
|
|
tooltipmanager.cpp
|
2007-09-09 23:40:24 +02:00
|
|
|
uiloader.cpp
|
2008-07-15 00:25:21 +02:00
|
|
|
version.cpp
|
2007-11-15 09:22:58 +01:00
|
|
|
view.cpp
|
2008-08-05 17:27:48 +02:00
|
|
|
wallpaper.cpp
|
2008-05-19 08:12:48 +02:00
|
|
|
widgets/checkbox.cpp
|
2008-05-19 21:10:58 +02:00
|
|
|
widgets/combobox.cpp
|
2008-05-19 07:56:42 +02:00
|
|
|
widgets/flash.cpp
|
2008-08-02 14:01:34 +02:00
|
|
|
widgets/frame.cpp
|
2008-05-19 22:18:46 +02:00
|
|
|
widgets/groupbox.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
widgets/icon.cpp
|
2008-05-19 03:24:12 +02:00
|
|
|
widgets/label.cpp
|
|
|
|
widgets/lineedit.cpp
|
2008-04-21 18:26:18 +02:00
|
|
|
widgets/meter.cpp
|
2008-05-19 07:44:32 +02:00
|
|
|
widgets/pushbutton.cpp
|
2008-05-19 07:56:42 +02:00
|
|
|
widgets/radiobutton.cpp
|
2008-08-13 16:47:27 +02:00
|
|
|
widgets/scrollbar.cpp
|
2008-04-21 18:26:18 +02:00
|
|
|
widgets/signalplotter.cpp
|
2008-07-29 02:31:28 +02:00
|
|
|
widgets/slider.cpp
|
2008-08-04 20:16:13 +02:00
|
|
|
widgets/tabbar.cpp
|
2008-08-20 18:54:35 +02:00
|
|
|
widgets/treeview.cpp
|
2008-05-19 20:17:12 +02:00
|
|
|
widgets/textedit.cpp
|
2008-05-19 07:56:42 +02:00
|
|
|
widgets/webcontent.cpp
|
2007-09-27 19:50:31 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
kde4_add_ui_files (
|
|
|
|
plasma_LIB_SRCS
|
|
|
|
appletbrowser/kcategorizeditemsviewbase.ui
|
2007-07-28 17:22:44 +02:00
|
|
|
)
|
2006-02-28 09:01:15 +01:00
|
|
|
|
2007-07-25 02:25:17 +02:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
MESSAGE(STATUS "Adding support for OpenGL applets to libplasma")
|
2007-07-24 23:50:37 +02:00
|
|
|
set(plasma_LIB_SRCS
|
|
|
|
${plasma_LIB_SRCS}
|
|
|
|
glapplet.cpp)
|
2007-07-25 02:25:17 +02:00
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2007-07-24 23:50:37 +02:00
|
|
|
|
2007-07-17 23:27:05 +02:00
|
|
|
kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
|
2006-02-28 09:01:15 +01:00
|
|
|
|
2008-06-16 11:04:14 +02:00
|
|
|
target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} ${KDE4_KNEWSTUFF2_LIBS}
|
2008-05-18 06:28:58 +02:00
|
|
|
${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY}
|
2008-07-17 18:26:29 +02:00
|
|
|
${KDE4_THREADWEAVER_LIBRARIES} ${KDE4_SOLID_LIBS} ${X11_LIBRARIES})
|
2007-11-07 17:08:11 +01:00
|
|
|
|
2007-11-10 15:00:53 +01:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2008-04-11 08:52:03 +02:00
|
|
|
target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY})
|
2007-11-10 15:00:53 +01:00
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2006-02-28 09:01:15 +01:00
|
|
|
|
2008-08-05 17:27:48 +02:00
|
|
|
set_target_properties(plasma PROPERTIES
|
2008-08-03 19:44:13 +02:00
|
|
|
VERSION 3.0.0
|
|
|
|
SOVERSION 3
|
2008-07-21 21:19:06 +02:00
|
|
|
${KDE4_DISABLE_PROPERTY_}LINK_INTERFACE_LIBRARIES "${KDE4_KDEUI_LIBS}"
|
|
|
|
)
|
2008-06-30 11:40:15 +02:00
|
|
|
|
2008-04-01 18:22:47 +02:00
|
|
|
install(TARGETS plasma ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2006-02-28 09:01:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2007-07-18 11:34:18 +02:00
|
|
|
set(plasmagik_HEADERS
|
|
|
|
packagemetadata.h
|
|
|
|
packagestructure.h
|
|
|
|
package.h
|
|
|
|
)
|
|
|
|
|
2008-06-27 08:45:00 +02:00
|
|
|
install(FILES ${plasmagik_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/ COMPONENT Devel)
|
2007-07-17 23:27:05 +02:00
|
|
|
|
2007-07-24 23:50:37 +02:00
|
|
|
set(plasma_LIB_INCLUDES
|
2007-07-17 23:27:05 +02:00
|
|
|
abstractrunner.h
|
2008-04-25 05:17:00 +02:00
|
|
|
animationdriver.h
|
2008-04-25 05:23:31 +02:00
|
|
|
animator.h
|
2007-07-17 23:27:05 +02:00
|
|
|
applet.h
|
2007-09-27 21:55:18 +02:00
|
|
|
appletbrowser.h
|
2007-07-18 11:34:18 +02:00
|
|
|
configxml.h
|
2007-09-18 23:25:15 +02:00
|
|
|
containment.h
|
2008-08-18 15:20:15 +02:00
|
|
|
context.h
|
2007-07-17 23:27:05 +02:00
|
|
|
corona.h
|
2007-07-23 02:22:16 +02:00
|
|
|
datacontainer.h
|
2007-07-17 23:27:05 +02:00
|
|
|
dataengine.h
|
|
|
|
dataenginemanager.h
|
2008-05-19 08:12:48 +02:00
|
|
|
delegate.h
|
2007-12-05 23:32:45 +01:00
|
|
|
dialog.h
|
2008-08-02 19:46:32 +02:00
|
|
|
extender.h
|
|
|
|
extenderitem.h
|
2008-07-04 01:50:13 +02:00
|
|
|
paintutils.h
|
2008-05-19 08:12:48 +02:00
|
|
|
panelsvg.h
|
2007-07-17 23:27:05 +02:00
|
|
|
plasma.h
|
|
|
|
plasma_export.h
|
2008-07-17 11:30:57 +02:00
|
|
|
popupapplet.h
|
2008-05-19 08:12:48 +02:00
|
|
|
querymatch.h
|
2008-05-01 20:40:10 +02:00
|
|
|
runnercontext.h
|
2008-05-01 09:51:59 +02:00
|
|
|
runnermanager.h
|
2008-05-18 06:28:58 +02:00
|
|
|
service.h
|
|
|
|
servicejob.h
|
2007-07-17 23:27:05 +02:00
|
|
|
svg.h
|
2007-09-09 23:40:24 +02:00
|
|
|
theme.h
|
2008-07-16 17:17:44 +02:00
|
|
|
tooltipmanager.h
|
2007-11-15 09:22:58 +01:00
|
|
|
uiloader.h
|
2008-07-16 17:17:44 +02:00
|
|
|
tooltipmanager.h
|
2008-07-15 00:25:21 +02:00
|
|
|
version.h
|
2008-08-05 17:27:48 +02:00
|
|
|
view.h
|
|
|
|
wallpaper.h)
|
2007-07-24 23:50:37 +02:00
|
|
|
|
2007-07-25 02:25:17 +02:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2007-07-24 23:50:37 +02:00
|
|
|
set(plasma_LIB_INCLUDES
|
2007-07-25 02:52:15 +02:00
|
|
|
${plasma_LIB_INCLUDES}
|
2007-07-24 23:50:37 +02:00
|
|
|
glapplet.h)
|
2007-07-25 02:25:17 +02:00
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2007-07-24 23:50:37 +02:00
|
|
|
|
|
|
|
install(FILES
|
|
|
|
${plasma_LIB_INCLUDES}
|
2008-06-09 13:33:54 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma COMPONENT Devel)
|
2007-07-17 23:27:05 +02:00
|
|
|
|
|
|
|
install(FILES
|
2008-05-19 08:12:48 +02:00
|
|
|
widgets/checkbox.h
|
2008-05-19 21:10:58 +02:00
|
|
|
widgets/combobox.h
|
2008-05-19 07:56:42 +02:00
|
|
|
widgets/flash.h
|
2008-08-02 14:01:34 +02:00
|
|
|
widgets/frame.h
|
2008-05-19 22:18:46 +02:00
|
|
|
widgets/groupbox.h
|
2007-07-17 23:27:05 +02:00
|
|
|
widgets/icon.h
|
2008-05-19 03:24:12 +02:00
|
|
|
widgets/label.h
|
|
|
|
widgets/lineedit.h
|
2008-04-21 18:26:18 +02:00
|
|
|
widgets/meter.h
|
2008-05-19 07:56:42 +02:00
|
|
|
widgets/pushbutton.h
|
|
|
|
widgets/radiobutton.h
|
2008-08-13 16:47:27 +02:00
|
|
|
widgets/scrollbar.h
|
2008-04-21 18:26:18 +02:00
|
|
|
widgets/signalplotter.h
|
2008-07-29 02:31:28 +02:00
|
|
|
widgets/slider.h
|
2008-08-04 20:16:13 +02:00
|
|
|
widgets/tabbar.h
|
2008-08-20 18:54:35 +02:00
|
|
|
widgets/treeview.h
|
2008-05-19 20:17:12 +02:00
|
|
|
widgets/textedit.h
|
2008-05-19 07:56:42 +02:00
|
|
|
widgets/webcontent.h
|
2008-06-09 13:33:54 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets COMPONENT Devel)
|
2007-07-17 23:27:05 +02:00
|
|
|
|
2008-01-25 01:04:03 +01:00
|
|
|
install(FILES
|
|
|
|
scripting/appletscript.h
|
|
|
|
scripting/dataenginescript.h
|
|
|
|
scripting/runnerscript.h
|
|
|
|
scripting/scriptengine.h
|
2008-06-09 13:33:54 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/scripting COMPONENT Devel)
|
2008-01-25 01:04:03 +01:00
|
|
|
|
|
|
|
|
2007-07-17 23:27:05 +02:00
|
|
|
install(FILES
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/AbstractRunner
|
|
|
|
includes/AnimationDriver
|
|
|
|
includes/Animator
|
|
|
|
includes/Applet
|
|
|
|
includes/AppletBrowser
|
|
|
|
includes/AppletScript
|
|
|
|
includes/CheckBox
|
|
|
|
includes/ComboBox
|
|
|
|
includes/ConfigXml
|
|
|
|
includes/Containment
|
2008-08-18 15:20:15 +02:00
|
|
|
includes/Context
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/Corona
|
|
|
|
includes/DataContainer
|
|
|
|
includes/DataEngine
|
|
|
|
includes/DataEngineManager
|
|
|
|
includes/DataEngineScript
|
|
|
|
includes/Delegate
|
|
|
|
includes/Dialog
|
2008-08-02 13:48:56 +02:00
|
|
|
includes/Extender
|
|
|
|
includes/ExtenderItem
|
2008-06-17 17:02:33 +02:00
|
|
|
includes/Flash
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/GroupBox
|
2008-06-17 00:31:44 +02:00
|
|
|
includes/Icon
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/Label
|
|
|
|
includes/LineEdit
|
2008-06-30 09:24:50 +02:00
|
|
|
includes/Meter
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/Package
|
|
|
|
includes/PackageMetadata
|
|
|
|
includes/PackageStructure
|
2008-07-04 01:50:13 +02:00
|
|
|
includes/PaintUtils
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/PanelSvg
|
|
|
|
includes/Plasma
|
2008-07-17 11:30:57 +02:00
|
|
|
includes/PopupApplet
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/PushButton
|
|
|
|
includes/QueryMatch
|
|
|
|
includes/RadioButton
|
|
|
|
includes/RunnerContext
|
|
|
|
includes/RunnerManager
|
|
|
|
includes/RunnerScript
|
|
|
|
includes/ScriptEngine
|
2008-08-13 16:47:27 +02:00
|
|
|
includes/ScrollBar
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/Service
|
|
|
|
includes/ServiceJob
|
2008-06-30 09:24:50 +02:00
|
|
|
includes/SignalPlotter
|
2008-07-29 02:31:28 +02:00
|
|
|
includes/Slider
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/Svg
|
2008-08-04 07:30:32 +02:00
|
|
|
includes/TabBar
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/TextEdit
|
2008-07-16 17:17:44 +02:00
|
|
|
includes/ToolTipManager
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/Theme
|
2008-08-20 18:54:35 +02:00
|
|
|
includes/TreeView
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/UiLoader
|
|
|
|
includes/View
|
2008-07-15 00:25:21 +02:00
|
|
|
includes/Version
|
2008-08-05 17:27:48 +02:00
|
|
|
includes/Wallpaper
|
2008-05-25 20:38:07 +02:00
|
|
|
includes/WebContent
|
2008-06-09 13:33:54 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma COMPONENT Devel)
|
2008-05-19 07:56:42 +02:00
|
|
|
|
2007-07-29 13:35:29 +02:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2008-05-25 20:38:07 +02:00
|
|
|
install(FILES
|
|
|
|
includes/GLApplet
|
2008-06-09 13:33:54 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma COMPONENT Devel)
|
2007-07-29 13:35:29 +02:00
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
|
2008-03-26 20:28:31 +01:00
|
|
|
install(FILES
|
2008-05-25 20:38:07 +02:00
|
|
|
servicetypes/plasma-animator.desktop
|
|
|
|
servicetypes/plasma-applet.desktop
|
|
|
|
servicetypes/plasma-containment.desktop
|
|
|
|
servicetypes/plasma-dataengine.desktop
|
|
|
|
servicetypes/plasma-packagestructure.desktop
|
|
|
|
servicetypes/plasma-runner.desktop
|
2008-07-15 00:25:21 +02:00
|
|
|
servicetypes/plasma-scriptengine.desktop
|
2008-08-05 17:27:48 +02:00
|
|
|
servicetypes/plasma-wallpaper.desktop
|
2008-07-15 00:25:21 +02:00
|
|
|
DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
2007-07-17 23:27:05 +02:00
|
|
|
|
2008-06-16 11:04:14 +02:00
|
|
|
install(FILES scripting/plasmoids.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
|
|
|
|
|
2008-08-18 15:20:15 +02:00
|
|
|
# Nepomuk integration
|
|
|
|
configure_file(ontology/workspace.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/workspace.desktop)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
ontology/workspace.trig
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/workspace.desktop
|
|
|
|
DESTINATION
|
|
|
|
${DATA_INSTALL_DIR}/nepomuk/ontologies
|
|
|
|
)
|
|
|
|
|