2008-01-25 18:10:58 +01:00
|
|
|
find_package(KDE4 REQUIRED)
|
|
|
|
include (KDE4Defaults)
|
2007-07-25 02:25:17 +02:00
|
|
|
|
2008-01-25 18:10:58 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${KDEBASE_WORKSPACE_SOURCE_DIR}/libs ${CMAKE_CURRENT_SOURCE_DIR}/.. ${KDE4_INCLUDES} ${OPENGL_INCLUDE_DIR})
|
2007-11-16 15:42:04 +01:00
|
|
|
|
2008-04-13 15:23: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-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-12-05 23:32:45 +01:00
|
|
|
dialog.cpp
|
2008-04-13 22:58:49 +02:00
|
|
|
#FOR FUTURE
|
|
|
|
#layouts/borderlayout.cpp
|
2007-07-20 05:16:40 +02:00
|
|
|
packages.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
plasma.cpp
|
|
|
|
plasma_export.h
|
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
|
2007-08-05 10:41:55 +02:00
|
|
|
shadowitem.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
svg.cpp
|
2008-04-16 19:23:58 +02:00
|
|
|
panelsvg.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
theme.cpp
|
2008-04-14 15:05:49 +02:00
|
|
|
toolbox.cpp
|
|
|
|
paneltoolbox.cpp
|
2007-12-21 02:14:32 +01:00
|
|
|
desktoptoolbox.cpp
|
2007-09-09 23:40:24 +02:00
|
|
|
uiloader.cpp
|
2007-11-15 09:22:58 +01:00
|
|
|
view.cpp
|
2008-03-18 12:09:39 +01:00
|
|
|
delegate.cpp
|
2008-01-25 01:04:03 +01:00
|
|
|
scripting/appletscript.cpp
|
|
|
|
scripting/dataenginescript.cpp
|
|
|
|
scripting/runnerscript.cpp
|
|
|
|
scripting/scriptengine.cpp
|
2007-06-08 07:24:19 +02:00
|
|
|
widgets/icon.cpp
|
2008-04-13 22:58:49 +02:00
|
|
|
widgets/webcontent.cpp
|
2008-04-21 18:26:18 +02:00
|
|
|
widgets/meter.cpp
|
|
|
|
widgets/signalplotter.cpp
|
2008-05-08 13:45:49 +02:00
|
|
|
widgets/flash.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-05-01 09:51:59 +02:00
|
|
|
target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS}
|
|
|
|
${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY} ${KDE4_THREADWEAVER_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
|
|
|
|
2007-07-17 23:27:05 +02:00
|
|
|
set_target_properties(plasma PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
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
|
|
|
|
)
|
|
|
|
|
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
|
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
|
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
|
2007-12-05 23:32:45 +01:00
|
|
|
dialog.h
|
2007-07-17 23:27:05 +02:00
|
|
|
plasma.h
|
|
|
|
plasma_export.h
|
2008-05-01 20:40:10 +02:00
|
|
|
runnercontext.h
|
2008-05-01 09:51:59 +02:00
|
|
|
runnermanager.h
|
2008-05-02 20:46:05 +02:00
|
|
|
querymatch.h
|
2007-08-05 10:41:55 +02:00
|
|
|
shadowitem_p.h
|
2007-07-17 23:27:05 +02:00
|
|
|
svg.h
|
2008-04-16 19:23:58 +02:00
|
|
|
panelsvg.h
|
2007-09-09 23:40:24 +02:00
|
|
|
theme.h
|
2007-11-15 09:22:58 +01:00
|
|
|
uiloader.h
|
2008-03-18 12:09:39 +01:00
|
|
|
view.h
|
|
|
|
delegate.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
|
|
|
|
widgets/icon.h
|
2008-04-04 01:36:56 +02:00
|
|
|
widgets/webcontent.h
|
2008-04-21 18:26:18 +02:00
|
|
|
widgets/meter.h
|
|
|
|
widgets/signalplotter.h
|
2008-05-08 13:45:49 +02:00
|
|
|
widgets/flash.h
|
2007-07-17 23:27:05 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets)
|
|
|
|
|
2008-04-14 09:45:51 +02:00
|
|
|
#For future
|
|
|
|
#install(FILES
|
|
|
|
# layouts/borderlayout.h
|
|
|
|
# DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/layouts)
|
2007-11-19 23:42:56 +01:00
|
|
|
|
2008-01-25 01:04:03 +01:00
|
|
|
install(FILES
|
|
|
|
scripting/appletscript.h
|
|
|
|
scripting/dataenginescript.h
|
|
|
|
scripting/runnerscript.h
|
|
|
|
scripting/scriptengine.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/scripting)
|
|
|
|
|
|
|
|
|
2007-07-17 23:27:05 +02:00
|
|
|
install(FILES
|
2007-07-20 04:09:51 +02:00
|
|
|
includes/AbstractRunner
|
2008-04-25 05:17:00 +02:00
|
|
|
includes/AnimationDriver
|
2008-04-25 05:23:31 +02:00
|
|
|
includes/Animator
|
2007-07-17 23:27:05 +02:00
|
|
|
includes/Applet
|
2007-11-15 09:22:58 +01:00
|
|
|
includes/AppletBrowser
|
2007-07-20 04:09:51 +02:00
|
|
|
includes/ConfigXml
|
2008-01-02 09:46:47 +01:00
|
|
|
includes/Corona
|
2007-11-15 09:22:58 +01:00
|
|
|
includes/Containment
|
2008-01-02 09:46:47 +01:00
|
|
|
includes/Dialog
|
2007-07-17 23:27:05 +02:00
|
|
|
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
|
2008-05-01 20:40:10 +02:00
|
|
|
includes/RunnerContext
|
2008-05-10 01:13:41 +02:00
|
|
|
includes/RunnerManager
|
2008-05-02 20:46:05 +02:00
|
|
|
includes/QueryMatch
|
2007-07-17 23:27:05 +02:00
|
|
|
includes/Svg
|
2008-04-16 19:23:58 +02:00
|
|
|
includes/PanelSvg
|
2007-09-16 15:14:40 +02:00
|
|
|
includes/UiLoader
|
|
|
|
includes/PackageMetadata
|
2007-11-15 09:22:58 +01:00
|
|
|
includes/View
|
2008-03-18 12:09:39 +01:00
|
|
|
includes/Delegate
|
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)
|
|
|
|
|
2008-03-26 20:28:31 +01:00
|
|
|
install(FILES
|
|
|
|
includes/ScriptEngine
|
2008-04-21 18:26:18 +02:00
|
|
|
includes/DataEngineScript
|
|
|
|
includes/RunnerScript
|
2008-04-14 09:35:36 +02:00
|
|
|
includes/AppletScript
|
2008-03-26 20:28:31 +01:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/Plasma/Scripting)
|
|
|
|
|
2007-07-29 13:35:29 +02:00
|
|
|
|
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
|
2008-03-05 22:12:33 +01:00
|
|
|
servicetypes/plasma-containment.desktop
|
2007-07-23 09:43:32 +02:00
|
|
|
servicetypes/plasma-dataengine.desktop
|
2008-02-26 05:04:57 +01:00
|
|
|
servicetypes/plasma-packagestructure.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})
|
|
|
|
|