2007-07-25 00:25:17 +00:00
|
|
|
|
2007-11-16 14:42:04 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs ${OPENGL_INCLUDE_DIR})
|
|
|
|
|
2007-10-22 01:30:29 +00:00
|
|
|
add_subdirectory(widgets)
|
|
|
|
add_subdirectory(tests)
|
2007-08-05 23:05:57 +00:00
|
|
|
|
2006-02-28 08:01:15 +00:00
|
|
|
########### next target ###############
|
|
|
|
|
2007-06-17 00:25:16 +00:00
|
|
|
set(plasmagik_SRCS
|
|
|
|
packagemetadata.cpp
|
|
|
|
packagestructure.cpp
|
|
|
|
package.cpp
|
|
|
|
)
|
|
|
|
|
2007-05-20 21:05:27 +00:00
|
|
|
set(plasma_LIB_SRCS
|
2007-06-17 00:25:16 +00:00
|
|
|
${plasmagik_SRCS}
|
2007-06-08 05:24:19 +00:00
|
|
|
abstractrunner.cpp
|
|
|
|
animator.cpp
|
|
|
|
applet.cpp
|
2007-09-27 19:55:18 +00:00
|
|
|
appletbrowser.cpp
|
2007-09-27 18:59:53 +00:00
|
|
|
appletbrowser/kcategorizeditemsview.cpp
|
|
|
|
appletbrowser/kcategorizeditemsviewdelegate.cpp
|
|
|
|
appletbrowser/kcategorizeditemsviewmodels.cpp
|
|
|
|
appletbrowser/plasmaappletitemmodel.cpp
|
2007-09-29 19:11:27 +00:00
|
|
|
appletbrowser/customdragtreeview.cpp
|
2007-11-12 19:27:21 +00:00
|
|
|
applethandle.cpp
|
2007-07-18 09:34:18 +00:00
|
|
|
configxml.cpp
|
2007-09-18 21:25:15 +00:00
|
|
|
containment.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
corona.cpp
|
2007-07-23 00:22:16 +00:00
|
|
|
datacontainer.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
dataengine.cpp
|
|
|
|
dataenginemanager.cpp
|
2007-12-05 22:32:45 +00:00
|
|
|
dialog.cpp
|
2007-11-19 22:42:56 +00:00
|
|
|
layouts/boxlayout.cpp
|
|
|
|
layouts/borderlayout.cpp
|
|
|
|
layouts/freelayout.cpp
|
|
|
|
layouts/nodelayout.cpp
|
|
|
|
layouts/flowlayout.cpp
|
2007-12-11 09:06:21 +00:00
|
|
|
layouts/fliplayout.cpp
|
2007-11-19 22:42:56 +00:00
|
|
|
layouts/layout.cpp
|
|
|
|
layouts/layoutanimator.cpp
|
|
|
|
layouts/layoutitem.cpp
|
2007-07-20 03:16:40 +00:00
|
|
|
packages.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
phase.cpp
|
|
|
|
plasma.cpp
|
|
|
|
plasma_export.h
|
2007-07-23 07:43:32 +00:00
|
|
|
scriptengine.cpp
|
2007-12-03 17:18:28 +00:00
|
|
|
searchmatch.cpp
|
2007-11-02 02:34:46 +00:00
|
|
|
searchcontext.cpp
|
2007-08-05 08:41:55 +00:00
|
|
|
shadowitem.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
svg.cpp
|
|
|
|
theme.cpp
|
2007-12-21 01:14:32 +00:00
|
|
|
desktoptoolbox.cpp
|
2007-09-09 21:40:24 +00:00
|
|
|
uiloader.cpp
|
2007-11-15 08:22:58 +00:00
|
|
|
view.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
widgets/checkbox.cpp
|
2007-07-29 15:20:02 +00:00
|
|
|
widgets/flash.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
widgets/icon.cpp
|
2007-07-29 15:20:02 +00:00
|
|
|
widgets/label.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
widgets/lineedit.cpp
|
2007-09-14 18:19:42 +00:00
|
|
|
widgets/progressbar.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
widgets/pushbutton.cpp
|
|
|
|
widgets/radiobutton.cpp
|
2007-07-28 09:21:47 +00:00
|
|
|
# widgets/rectangle.cpp
|
2007-06-08 05:24:19 +00:00
|
|
|
widgets/widget.cpp
|
2007-08-13 15:15:19 +00:00
|
|
|
widgets/signalplotter.cpp
|
2007-09-25 15:35:37 +00:00
|
|
|
widgets/meter.cpp
|
2007-12-21 05:33:17 +00:00
|
|
|
widgets/tooltip.cpp
|
2007-09-27 17:50:31 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
kde4_add_ui_files (
|
|
|
|
plasma_LIB_SRCS
|
|
|
|
appletbrowser/kcategorizeditemsviewbase.ui
|
2007-07-28 15:22:44 +00:00
|
|
|
)
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2007-07-25 00:25:17 +00:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
MESSAGE(STATUS "Adding support for OpenGL applets to libplasma")
|
2007-07-24 21:50:37 +00:00
|
|
|
set(plasma_LIB_SRCS
|
|
|
|
${plasma_LIB_SRCS}
|
|
|
|
glapplet.cpp)
|
2007-07-25 00:25:17 +00:00
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2007-07-24 21:50:37 +00:00
|
|
|
|
2007-07-17 21:27:05 +00:00
|
|
|
kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2007-12-27 13:22:09 +00:00
|
|
|
target_link_libraries(plasma ${KDE4_KIO_LIBS} ${QT_QTUITOOLS_LIBRARY})
|
2007-11-07 16:08:11 +00:00
|
|
|
|
2007-11-10 14:00:53 +00:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY})
|
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2007-07-17 21:27:05 +00:00
|
|
|
set_target_properties(plasma PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
|
|
|
install(TARGETS plasma DESTINATION ${LIB_INSTALL_DIR})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2007-07-18 09:34:18 +00:00
|
|
|
set(plasmagik_HEADERS
|
|
|
|
packagemetadata.h
|
|
|
|
packagestructure.h
|
|
|
|
package.h
|
|
|
|
)
|
|
|
|
|
2007-07-17 21:27:05 +00:00
|
|
|
install(FILES ${plasmagik_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/)
|
|
|
|
|
2007-07-24 21:50:37 +00:00
|
|
|
set(plasma_LIB_INCLUDES
|
2007-07-17 21:27:05 +00:00
|
|
|
abstractrunner.h
|
|
|
|
animator.h
|
|
|
|
applet.h
|
2007-09-27 19:55:18 +00:00
|
|
|
appletbrowser.h
|
2007-07-18 09:34:18 +00:00
|
|
|
configxml.h
|
2007-09-18 21:25:15 +00:00
|
|
|
containment.h
|
2007-07-17 21:27:05 +00:00
|
|
|
corona.h
|
2007-07-23 00:22:16 +00:00
|
|
|
datacontainer.h
|
2007-07-17 21:27:05 +00:00
|
|
|
dataengine.h
|
|
|
|
dataenginemanager.h
|
2007-12-05 22:32:45 +00:00
|
|
|
dialog.h
|
2007-07-17 21:27:05 +00:00
|
|
|
phase.h
|
|
|
|
plasma.h
|
|
|
|
plasma_export.h
|
2007-08-07 14:44:03 +00:00
|
|
|
scriptengine.h
|
2007-12-03 17:18:28 +00:00
|
|
|
searchmatch.h
|
2007-11-02 02:34:46 +00:00
|
|
|
searchcontext.h
|
2007-08-05 08:41:55 +00:00
|
|
|
shadowitem_p.h
|
2007-07-17 21:27:05 +00:00
|
|
|
svg.h
|
2007-09-09 21:40:24 +00:00
|
|
|
theme.h
|
2007-11-15 08:22:58 +00:00
|
|
|
uiloader.h
|
|
|
|
view.h)
|
2007-07-24 21:50:37 +00:00
|
|
|
|
2007-07-25 00:25:17 +00:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2007-07-24 21:50:37 +00:00
|
|
|
set(plasma_LIB_INCLUDES
|
2007-07-25 00:52:15 +00:00
|
|
|
${plasma_LIB_INCLUDES}
|
2007-07-24 21:50:37 +00:00
|
|
|
glapplet.h)
|
2007-07-25 00:25:17 +00:00
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2007-07-24 21:50:37 +00:00
|
|
|
|
|
|
|
install(FILES
|
|
|
|
${plasma_LIB_INCLUDES}
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma)
|
2007-07-17 21:27:05 +00:00
|
|
|
|
|
|
|
install(FILES
|
2007-07-29 15:20:02 +00:00
|
|
|
widgets/flash.h
|
2007-07-17 21:27:05 +00:00
|
|
|
widgets/icon.h
|
2007-07-28 09:21:47 +00:00
|
|
|
widgets/label.h
|
2007-07-17 21:27:05 +00:00
|
|
|
widgets/lineedit.h
|
2007-09-15 08:15:07 +00:00
|
|
|
widgets/progressbar.h
|
2007-07-17 21:27:05 +00:00
|
|
|
widgets/pushbutton.h
|
|
|
|
widgets/checkbox.h
|
|
|
|
widgets/radiobutton.h
|
2007-07-28 09:21:47 +00:00
|
|
|
# widgets/rectangle.h
|
2007-07-17 21:27:05 +00:00
|
|
|
widgets/widget.h
|
2007-08-13 15:15:19 +00:00
|
|
|
widgets/signalplotter.h
|
2007-09-25 15:35:37 +00:00
|
|
|
widgets/meter.h
|
2007-07-17 21:27:05 +00:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets)
|
|
|
|
|
2007-11-19 22:42:56 +00:00
|
|
|
install(FILES
|
2007-11-19 23:11:40 +00:00
|
|
|
layouts/boxlayout.h
|
|
|
|
layouts/vboxlayout.h
|
|
|
|
layouts/hboxlayout.h
|
2007-11-19 23:24:12 +00:00
|
|
|
layouts/borderlayout.h
|
|
|
|
layouts/freelayout.h
|
|
|
|
layouts/nodelayout.h
|
|
|
|
layouts/flowlayout.h
|
2007-12-11 09:06:21 +00:00
|
|
|
layouts/fliplayout.h
|
2007-11-19 23:24:12 +00:00
|
|
|
layouts/layout.h
|
|
|
|
layouts/layoutanimator.h
|
|
|
|
layouts/layoutitem.h
|
2007-11-19 22:42:56 +00:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/layouts)
|
|
|
|
|
2007-07-17 21:27:05 +00:00
|
|
|
install(FILES
|
2007-07-20 02:09:51 +00:00
|
|
|
includes/AbstractRunner
|
2008-01-02 08:46:47 +00:00
|
|
|
includes/Animator
|
2007-07-17 21:27:05 +00:00
|
|
|
includes/Applet
|
2007-11-15 08:22:58 +00:00
|
|
|
includes/AppletBrowser
|
2007-07-20 02:09:51 +00:00
|
|
|
includes/ConfigXml
|
2008-01-02 08:46:47 +00:00
|
|
|
includes/Corona
|
2007-11-15 08:22:58 +00:00
|
|
|
includes/Containment
|
2008-01-02 08:46:47 +00:00
|
|
|
includes/Dialog
|
2007-07-17 21:27:05 +00:00
|
|
|
includes/Phase
|
|
|
|
includes/Plasma
|
2007-07-20 02:09:51 +00:00
|
|
|
includes/Package
|
|
|
|
includes/PackageStructure
|
2007-07-17 21:27:05 +00:00
|
|
|
includes/Theme
|
2007-07-23 00:22:16 +00:00
|
|
|
includes/DataContainer
|
2007-07-17 21:27:05 +00:00
|
|
|
includes/DataEngine
|
|
|
|
includes/DataEngineManager
|
2007-07-23 07:43:32 +00:00
|
|
|
includes/ScriptEngine
|
2007-12-03 17:18:28 +00:00
|
|
|
includes/SearchContext
|
|
|
|
includes/SearchMatch
|
2007-07-17 21:27:05 +00:00
|
|
|
includes/Svg
|
2007-09-16 13:14:40 +00:00
|
|
|
includes/UiLoader
|
|
|
|
includes/PackageMetadata
|
2007-11-15 08:22:58 +00:00
|
|
|
includes/View
|
2007-07-17 21:27:05 +00:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma)
|
|
|
|
|
2007-07-29 11:35:29 +00:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
install(FILES
|
|
|
|
includes/GLApplet
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma)
|
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
|
|
|
|
|
2007-07-17 21:27:05 +00:00
|
|
|
install(FILES
|
2007-07-23 07:43:32 +00:00
|
|
|
servicetypes/plasma-animator.desktop
|
|
|
|
servicetypes/plasma-applet.desktop
|
|
|
|
servicetypes/plasma-dataengine.desktop
|
2007-10-09 03:20:02 +00:00
|
|
|
servicetypes/plasma-runner.desktop
|
2007-07-23 07:43:32 +00:00
|
|
|
servicetypes/plasma-scriptengine.desktop
|
2007-07-17 21:27:05 +00:00
|
|
|
DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
|
|
|
|