2008-11-04 00:08:39 +01:00
|
|
|
|
2008-11-04 03:20:46 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_BINARY_DIR}/kdecore/
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/config
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/jobs
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/kernel
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/localization
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/io
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/services
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/sycoca
|
|
|
|
${CMAKE_SOURCE_DIR}/kdecore/util
|
|
|
|
${CMAKE_BINARY_DIR}/kdeui/
|
2008-11-04 03:39:56 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/
|
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/actions
|
2008-11-04 03:20:46 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/about
|
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/config
|
2008-11-04 03:39:56 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/colors
|
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/dialogs
|
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/kernel
|
2008-11-04 03:20:46 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/icons
|
2008-11-04 03:39:56 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/paged
|
2008-11-04 03:20:46 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/shortcuts
|
2008-11-04 03:39:56 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/util
|
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/widgets
|
|
|
|
${CMAKE_SOURCE_DIR}/kdeui/windowmanagement
|
2008-11-04 03:20:46 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kio
|
2008-11-04 03:39:56 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kio/kio
|
2009-02-12 18:33:50 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/kio/kfile
|
2008-11-04 03:55:37 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/knewstuff/
|
2008-11-04 03:39:56 +01:00
|
|
|
${CMAKE_BINARY_DIR}/solid/
|
|
|
|
${CMAKE_SOURCE_DIR}/solid/
|
2008-11-04 03:55:37 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/threadweaver/
|
2008-11-04 03:20:46 +01:00
|
|
|
${KDE4_INCLUDES})
|
2008-11-04 00:08:39 +01:00
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2008-11-04 14:37:04 +01:00
|
|
|
# libGL needs dlopen() and friends from the dl library
|
|
|
|
find_library(DL_LIBRARY dl)
|
2009-03-19 01:44:10 +01:00
|
|
|
mark_as_advanced(DL_LIBRARY)
|
2008-11-04 00:08:39 +01:00
|
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
|
|
|
|
add_subdirectory(tests)
|
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(plasmagik_SRCS
|
|
|
|
packagemetadata.cpp
|
|
|
|
packagestructure.cpp
|
|
|
|
package.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(plasma_LIB_SRCS
|
|
|
|
${plasmagik_SRCS}
|
|
|
|
abstractrunner.cpp
|
|
|
|
animationdriver.cpp
|
|
|
|
animator.cpp
|
|
|
|
applet.cpp
|
|
|
|
configloader.cpp
|
|
|
|
containment.cpp
|
|
|
|
context.cpp
|
2009-08-18 00:30:29 +02:00
|
|
|
contextaction.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
corona.cpp
|
|
|
|
datacontainer.cpp
|
|
|
|
dataengine.cpp
|
|
|
|
dataenginemanager.cpp
|
|
|
|
delegate.cpp
|
|
|
|
dialog.cpp
|
|
|
|
extender.cpp
|
2009-03-23 17:30:32 +01:00
|
|
|
extendergroup.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
extenderitem.cpp
|
|
|
|
paintutils.cpp
|
|
|
|
framesvg.cpp
|
|
|
|
plasma.cpp
|
|
|
|
popupapplet.cpp
|
|
|
|
private/applethandle.cpp
|
|
|
|
private/datacontainer_p.cpp
|
|
|
|
private/desktoptoolbox.cpp
|
|
|
|
private/extenderapplet.cpp
|
2009-02-09 19:10:45 +01:00
|
|
|
private/extenderitemmimedata.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
private/nativetabbar.cpp
|
|
|
|
private/packages.cpp
|
|
|
|
private/paneltoolbox.cpp
|
2009-02-11 12:16:09 +01:00
|
|
|
private/runnerjobs.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
private/style.cpp
|
|
|
|
private/toolbox.cpp
|
|
|
|
private/tooltip.cpp
|
2009-04-02 08:31:37 +02:00
|
|
|
private/wallpaperrenderthread.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
private/windowpreview.cpp
|
|
|
|
querymatch.cpp
|
|
|
|
runnercontext.cpp
|
|
|
|
runnermanager.cpp
|
2009-03-25 02:08:08 +01:00
|
|
|
runnersyntax.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
scripting/appletscript.cpp
|
|
|
|
scripting/dataenginescript.cpp
|
|
|
|
scripting/runnerscript.cpp
|
|
|
|
scripting/scriptengine.cpp
|
|
|
|
service.cpp
|
|
|
|
servicejob.cpp
|
|
|
|
svg.cpp
|
|
|
|
theme.cpp
|
|
|
|
tooltipcontent.cpp
|
|
|
|
tooltipmanager.cpp
|
|
|
|
version.cpp
|
|
|
|
view.cpp
|
|
|
|
wallpaper.cpp
|
2009-07-26 20:58:27 +02:00
|
|
|
windoweffects.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
widgets/checkbox.cpp
|
|
|
|
widgets/combobox.cpp
|
|
|
|
widgets/flashinglabel.cpp
|
|
|
|
widgets/frame.cpp
|
|
|
|
widgets/groupbox.cpp
|
|
|
|
widgets/iconwidget.cpp
|
|
|
|
widgets/label.cpp
|
|
|
|
widgets/lineedit.cpp
|
|
|
|
widgets/meter.cpp
|
|
|
|
widgets/pushbutton.cpp
|
|
|
|
widgets/radiobutton.cpp
|
|
|
|
widgets/scrollbar.cpp
|
|
|
|
widgets/signalplotter.cpp
|
|
|
|
widgets/slider.cpp
|
2009-01-07 19:54:43 +01:00
|
|
|
widgets/spinbox.cpp
|
2008-11-11 10:30:05 +01:00
|
|
|
widgets/toolbutton.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
widgets/busywidget.cpp
|
2009-03-03 18:31:54 +01:00
|
|
|
widgets/scrollwidget.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
widgets/svgwidget.cpp
|
|
|
|
widgets/tabbar.cpp
|
2009-03-03 18:38:16 +01:00
|
|
|
widgets/textbrowser.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
widgets/treeview.cpp
|
|
|
|
widgets/textedit.cpp
|
|
|
|
widgets/webview.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
#NEPOMUK_GENERATE_FROM_ONTOLOGY(
|
|
|
|
# nwc.nrl
|
|
|
|
# ${metadata_test_BINARY_DIR}
|
|
|
|
# TEST_HEADERS
|
|
|
|
# TEST_SOURCES
|
|
|
|
# TEST_INCLUDES
|
|
|
|
#)
|
|
|
|
|
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2008-11-12 23:56:18 +01:00
|
|
|
message(STATUS "Adding support for OpenGL applets to libplasma")
|
|
|
|
set(plasma_LIB_SRCS
|
|
|
|
${plasma_LIB_SRCS}
|
|
|
|
glapplet.cpp)
|
2008-11-04 00:08:39 +01:00
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
|
2009-02-08 22:41:08 +01:00
|
|
|
if (PHONON_FOUND)
|
2009-02-20 09:41:56 +01:00
|
|
|
message(STATUS "Adding support for Phonon to libplasma")
|
2009-02-08 22:41:08 +01:00
|
|
|
set(plasma_LIB_SRCS
|
|
|
|
${plasma_LIB_SRCS}
|
|
|
|
widgets/videowidget.cpp)
|
|
|
|
endif(PHONON_FOUND)
|
|
|
|
|
2008-11-04 00:08:39 +01:00
|
|
|
kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})
|
|
|
|
|
2008-11-04 03:57:34 +01:00
|
|
|
target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} knewstuff2
|
2008-11-04 00:08:39 +01:00
|
|
|
${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY}
|
2008-11-04 09:13:55 +01:00
|
|
|
threadweaver ${KDE4_SOLID_LIBS} )
|
|
|
|
if(X11_FOUND)
|
|
|
|
target_link_libraries(plasma ${X11_LIBRARIES})
|
|
|
|
endif(X11_FOUND)
|
|
|
|
|
2009-02-08 22:41:08 +01:00
|
|
|
if(PHONON_FOUND)
|
|
|
|
target_link_libraries(plasma ${KDE4_PHONON_LIBS})
|
|
|
|
endif(PHONON_FOUND)
|
2008-11-04 09:13:55 +01:00
|
|
|
|
2008-11-04 00:08:39 +01:00
|
|
|
if(DL_LIBRARY)
|
2008-11-12 23:56:18 +01:00
|
|
|
target_link_libraries(plasma ${DL_LIBRARY})
|
2008-11-04 00:08:39 +01:00
|
|
|
endif(DL_LIBRARY)
|
|
|
|
|
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
target_link_libraries(plasma ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY})
|
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
|
2008-11-11 00:52:13 +01:00
|
|
|
target_link_libraries(plasma LINK_INTERFACE_LIBRARIES kdeui kdecore ${QT_QTGUI_LIBRARY})
|
|
|
|
|
2008-11-04 00:29:54 +01:00
|
|
|
#do NOT use GENERIC versioning -- the plasma team will take care of versioning
|
2008-11-04 00:08:39 +01:00
|
|
|
set_target_properties(plasma PROPERTIES
|
|
|
|
VERSION 3.0.0
|
|
|
|
SOVERSION 3
|
|
|
|
)
|
|
|
|
|
2008-11-11 00:52:13 +01:00
|
|
|
install(TARGETS plasma EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2008-11-04 00:08:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
set(plasmagik_HEADERS
|
|
|
|
packagemetadata.h
|
|
|
|
packagestructure.h
|
|
|
|
package.h
|
|
|
|
)
|
|
|
|
|
|
|
|
install(FILES ${plasmagik_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/ COMPONENT Devel)
|
|
|
|
|
|
|
|
set(plasma_LIB_INCLUDES
|
|
|
|
abstractrunner.h
|
|
|
|
animationdriver.h
|
|
|
|
animator.h
|
|
|
|
applet.h
|
|
|
|
configloader.h
|
|
|
|
containment.h
|
|
|
|
context.h
|
2009-08-18 00:30:29 +02:00
|
|
|
contextaction.h
|
2008-11-04 00:08:39 +01:00
|
|
|
corona.h
|
|
|
|
datacontainer.h
|
|
|
|
dataengine.h
|
|
|
|
dataenginemanager.h
|
|
|
|
delegate.h
|
|
|
|
dialog.h
|
|
|
|
extender.h
|
2009-03-23 17:30:32 +01:00
|
|
|
extendergroup.h
|
2008-11-04 00:08:39 +01:00
|
|
|
extenderitem.h
|
|
|
|
paintutils.h
|
2009-07-26 20:58:27 +02:00
|
|
|
windoweffects.h
|
2008-11-04 00:08:39 +01:00
|
|
|
framesvg.h
|
|
|
|
plasma.h
|
|
|
|
plasma_export.h
|
|
|
|
popupapplet.h
|
|
|
|
querymatch.h
|
|
|
|
runnercontext.h
|
|
|
|
runnermanager.h
|
2009-03-25 02:08:08 +01:00
|
|
|
runnersyntax.h
|
2008-11-04 00:08:39 +01:00
|
|
|
service.h
|
|
|
|
servicejob.h
|
|
|
|
svg.h
|
|
|
|
theme.h
|
|
|
|
tooltipcontent.h
|
|
|
|
tooltipmanager.h
|
|
|
|
tooltipmanager.h
|
|
|
|
version.h
|
|
|
|
view.h
|
|
|
|
wallpaper.h)
|
|
|
|
|
|
|
|
if(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
2008-11-12 23:56:18 +01:00
|
|
|
set(plasma_LIB_INCLUDES
|
|
|
|
${plasma_LIB_INCLUDES}
|
|
|
|
glapplet.h)
|
2008-11-04 00:08:39 +01:00
|
|
|
endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
${plasma_LIB_INCLUDES}
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma COMPONENT Devel)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
widgets/checkbox.h
|
|
|
|
widgets/combobox.h
|
|
|
|
widgets/flashinglabel.h
|
|
|
|
widgets/frame.h
|
|
|
|
widgets/groupbox.h
|
|
|
|
widgets/iconwidget.h
|
|
|
|
widgets/label.h
|
|
|
|
widgets/lineedit.h
|
|
|
|
widgets/meter.h
|
|
|
|
widgets/pushbutton.h
|
2008-11-11 10:30:05 +01:00
|
|
|
widgets/toolbutton.h
|
2008-11-04 00:08:39 +01:00
|
|
|
widgets/radiobutton.h
|
|
|
|
widgets/scrollbar.h
|
|
|
|
widgets/signalplotter.h
|
|
|
|
widgets/slider.h
|
2009-01-07 19:54:43 +01:00
|
|
|
widgets/spinbox.h
|
2008-11-04 00:08:39 +01:00
|
|
|
widgets/busywidget.h
|
|
|
|
widgets/svgwidget.h
|
2009-03-03 18:31:54 +01:00
|
|
|
widgets/scrollwidget.h
|
2008-11-04 00:08:39 +01:00
|
|
|
widgets/tabbar.h
|
2009-03-03 18:38:16 +01:00
|
|
|
widgets/textbrowser.h
|
2008-11-04 00:08:39 +01:00
|
|
|
widgets/treeview.h
|
|
|
|
widgets/textedit.h
|
|
|
|
widgets/webview.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets COMPONENT Devel)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
scripting/appletscript.h
|
|
|
|
scripting/dataenginescript.h
|
|
|
|
scripting/runnerscript.h
|
|
|
|
scripting/scriptengine.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/scripting COMPONENT Devel)
|
|
|
|
|
2009-02-08 22:54:31 +01:00
|
|
|
if(PHONON_FOUND)
|
|
|
|
install (FILES
|
|
|
|
widgets/videowidget.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets COMPONENT Devel)
|
|
|
|
endif(PHONON_FOUND)
|
2008-11-04 00:08:39 +01:00
|
|
|
|
|
|
|
install(FILES
|
|
|
|
servicetypes/plasma-animator.desktop
|
|
|
|
servicetypes/plasma-applet.desktop
|
2009-04-24 11:49:47 +02:00
|
|
|
servicetypes/plasma-applet-popupapplet.desktop
|
2008-11-04 00:08:39 +01:00
|
|
|
servicetypes/plasma-containment.desktop
|
2009-08-18 00:30:29 +02:00
|
|
|
servicetypes/plasma-contextaction.desktop
|
2008-11-04 00:08:39 +01:00
|
|
|
servicetypes/plasma-dataengine.desktop
|
|
|
|
servicetypes/plasma-packagestructure.desktop
|
|
|
|
servicetypes/plasma-runner.desktop
|
|
|
|
servicetypes/plasma-scriptengine.desktop
|
|
|
|
servicetypes/plasma-wallpaper.desktop
|
|
|
|
DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
servicetypes/plasma-applet-extenderapplet.desktop
|
|
|
|
DESTINATION ${SERVICES_INSTALL_DIR})
|
|
|
|
|
|
|
|
install(FILES scripting/plasmoids.knsrc DESTINATION ${CONFIG_INSTALL_DIR})
|
|
|
|
|
2009-04-21 19:11:20 +02:00
|
|
|
install(FILES plasma_popupapplet_fix_groups.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR})
|
|
|
|
install(PROGRAMS plasma_popupapplet_fix_groups.pl DESTINATION ${KCONF_UPDATE_INSTALL_DIR})
|