2007-07-17 23:27:05 +02:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs)
|
2006-02-28 09:01:15 +01:00
|
|
|
|
2007-07-25 02:25:17 +02:00
|
|
|
find_package(OpenGL)
|
|
|
|
|
2007-10-22 03:30:29 +02:00
|
|
|
add_subdirectory(widgets)
|
|
|
|
add_subdirectory(tests)
|
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
|
|
|
|
animator.cpp
|
|
|
|
applet.cpp
|
2007-09-27 21:55:18 +02:00
|
|
|
appletbrowser.cpp
|
2007-09-27 20:59:53 +02:00
|
|
|
appletbrowser/kcategorizeditemsview.cpp
|
|
|
|
appletbrowser/kcategorizeditemsviewdelegate.cpp
|
|
|
|
appletbrowser/kcategorizeditemsviewmodels.cpp
|
|
|
|
appletbrowser/plasmaappletitemmodel.cpp
|
2007-09-29 21:11:27 +02:00
|
|
|
appletbrowser/customdragtreeview.cpp
|
2007-11-12 20:27:21 +01:00
|
|
|
applethandle.cpp
|
2007-07-18 11:34:18 +02:00
|
|
|
configxml.cpp
|
2007-09-18 23:25:15 +02:00
|
|
|
containment.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
|
2007-07-20 05:16:40 +02:00
|
|
|
packages.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
phase.cpp
|
|
|
|
plasma.cpp
|
|
|
|
plasma_export.h
|
2007-07-23 09:43:32 +02:00
|
|
|
scriptengine.cpp
|
2007-11-02 03:34:46 +01:00
|
|
|
searchaction.cpp
|
|
|
|
searchcontext.cpp
|
2007-08-05 10:41:55 +02:00
|
|
|
shadowitem.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
svg.cpp
|
|
|
|
theme.cpp
|
2007-09-09 23:40:24 +02:00
|
|
|
uiloader.cpp
|
2007-07-26 00:20:15 +02:00
|
|
|
widgets/boxlayout.cpp
|
2007-09-16 11:08:08 +02:00
|
|
|
widgets/borderlayout.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
widgets/checkbox.cpp
|
2007-09-13 06:38:30 +02:00
|
|
|
widgets/freelayout.cpp
|
2007-10-13 15:29:21 +02:00
|
|
|
widgets/nodelayout.cpp
|
2007-09-01 14:34:22 +02:00
|
|
|
widgets/flowlayout.cpp
|
2007-07-29 17:20:02 +02:00
|
|
|
widgets/flash.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
widgets/icon.cpp
|
2007-07-29 17:20:02 +02:00
|
|
|
widgets/label.cpp
|
|
|
|
widgets/layout.cpp
|
2007-08-16 17:56:00 +02:00
|
|
|
widgets/layoutanimator.cpp
|
2007-07-29 17:20:02 +02:00
|
|
|
widgets/layoutitem.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
widgets/lineedit.cpp
|
2007-09-14 20:19:42 +02:00
|
|
|
widgets/progressbar.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
widgets/pushbutton.cpp
|
|
|
|
widgets/radiobutton.cpp
|
2007-07-28 11:21:47 +02:00
|
|
|
# widgets/rectangle.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
widgets/widget.cpp
|
2007-08-13 17:15:19 +02:00
|
|
|
widgets/signalplotter.cpp
|
2007-09-25 17:35:37 +02:00
|
|
|
widgets/meter.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
|
|
|
|
2007-11-10 15:00:53 +01:00
|
|
|
target_link_libraries(plasma ${KDE4_KIO_LIBS} ${QT_QTUITOOLS_LIBRARY})
|
2007-11-07 17:08:11 +01:00
|
|
|
|
2007-11-10 15:00:53 +01: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 09:01:15 +01:00
|
|
|
|
2007-07-17 23:27:05 +02:00
|
|
|
set_target_properties(plasma PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
|
|
|
install(TARGETS plasma DESTINATION ${LIB_INSTALL_DIR})
|
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
|
|
|
|
)
|
|
|
|
|
2007-07-17 23:27:05 +02:00
|
|
|
install(FILES ${plasmagik_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/)
|
|
|
|
|
2007-07-24 23:50:37 +02:00
|
|
|
set(plasma_LIB_INCLUDES
|
2007-07-17 23:27:05 +02:00
|
|
|
abstractrunner.h
|
|
|
|
animator.h
|
|
|
|
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
|
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
|
|
|
|
phase.h
|
|
|
|
plasma.h
|
|
|
|
plasma_export.h
|
2007-08-07 16:44:03 +02:00
|
|
|
scriptengine.h
|
2007-11-02 03:34:46 +01:00
|
|
|
searchaction.h
|
|
|
|
searchcontext.h
|
2007-08-05 10:41:55 +02:00
|
|
|
shadowitem_p.h
|
2007-07-17 23:27:05 +02:00
|
|
|
svg.h
|
2007-09-09 23:40:24 +02:00
|
|
|
theme.h
|
|
|
|
uiloader.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}
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma)
|
2007-07-17 23:27:05 +02:00
|
|
|
|
|
|
|
install(FILES
|
2007-07-26 00:20:15 +02:00
|
|
|
widgets/boxlayout.h
|
2007-09-16 11:08:08 +02:00
|
|
|
widgets/borderlayout.h
|
2007-10-13 15:29:21 +02:00
|
|
|
widgets/nodelayout.h
|
2007-07-26 09:23:30 +02:00
|
|
|
widgets/hboxlayout.h
|
2007-09-01 14:34:22 +02:00
|
|
|
widgets/vboxlayout.h
|
2007-09-13 06:38:30 +02:00
|
|
|
widgets/freelayout.h
|
2007-07-29 17:20:02 +02:00
|
|
|
widgets/flash.h
|
2007-07-17 23:27:05 +02:00
|
|
|
widgets/icon.h
|
2007-07-28 11:21:47 +02:00
|
|
|
widgets/label.h
|
2007-07-17 23:27:05 +02:00
|
|
|
widgets/layout.h
|
2007-09-01 14:34:22 +02:00
|
|
|
widgets/layoutanimator.h
|
2007-07-17 23:27:05 +02:00
|
|
|
widgets/layoutitem.h
|
|
|
|
widgets/lineedit.h
|
2007-09-15 10:15:07 +02:00
|
|
|
widgets/progressbar.h
|
2007-07-17 23:27:05 +02:00
|
|
|
widgets/pushbutton.h
|
|
|
|
widgets/checkbox.h
|
|
|
|
widgets/radiobutton.h
|
2007-07-28 11:21:47 +02:00
|
|
|
# widgets/rectangle.h
|
2007-07-17 23:27:05 +02:00
|
|
|
widgets/widget.h
|
2007-08-13 17:15:19 +02:00
|
|
|
widgets/signalplotter.h
|
2007-09-25 17:35:37 +02:00
|
|
|
widgets/meter.h
|
2007-07-17 23:27:05 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets)
|
|
|
|
|
|
|
|
install(FILES
|
2007-07-20 04:09:51 +02:00
|
|
|
includes/AbstractRunner
|
2007-07-17 23:27:05 +02:00
|
|
|
includes/Applet
|
2007-07-20 04:09:51 +02:00
|
|
|
includes/ConfigXml
|
2007-07-17 23:27:05 +02:00
|
|
|
includes/Phase
|
|
|
|
includes/Plasma
|
2007-07-20 04:09:51 +02:00
|
|
|
includes/Package
|
|
|
|
includes/PackageStructure
|
2007-07-17 23:27:05 +02:00
|
|
|
includes/Theme
|
2007-07-23 02:22:16 +02:00
|
|
|
includes/DataContainer
|
2007-07-17 23:27:05 +02:00
|
|
|
includes/DataEngine
|
|
|
|
includes/DataEngineManager
|
2007-07-23 09:43:32 +02:00
|
|
|
includes/ScriptEngine
|
2007-07-17 23:27:05 +02:00
|
|
|
includes/Svg
|
2007-09-16 15:14:40 +02:00
|
|
|
includes/UiLoader
|
|
|
|
includes/PackageMetadata
|
2007-09-19 09:21:58 +02:00
|
|
|
includes/Containment
|
2007-10-11 09:16:34 +02:00
|
|
|
includes/AppletBrowser
|
2007-07-17 23:27:05 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma)
|
|
|
|
|
2007-07-29 13:35:29 +02: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 23:27:05 +02:00
|
|
|
install(FILES
|
2007-07-23 09:43:32 +02:00
|
|
|
servicetypes/plasma-animator.desktop
|
|
|
|
servicetypes/plasma-applet.desktop
|
|
|
|
servicetypes/plasma-dataengine.desktop
|
2007-10-09 05:20:02 +02:00
|
|
|
servicetypes/plasma-runner.desktop
|
2007-07-23 09:43:32 +02:00
|
|
|
servicetypes/plasma-scriptengine.desktop
|
2007-07-17 23:27:05 +02:00
|
|
|
DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
|
|
|
|