2012-02-01 12:41:32 +01:00
|
|
|
# This option should be removed, or moved down as far as possible.
|
|
|
|
# That means porting the existing frameworks to the CMake automoc
|
|
|
|
# feature. Porting is mostly removing explicit moc includes, and
|
|
|
|
# leaving the ones which are truly needed (ie, if you remove
|
|
|
|
# them, the build fails).
|
|
|
|
set(CMAKE_AUTOMOC_RELAXED_MODE ON)
|
|
|
|
|
2010-04-29 07:57:34 +02:00
|
|
|
if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION)
|
|
|
|
set(PLASMA_NO_SOLID TRUE)
|
2010-10-14 14:27:15 +02:00
|
|
|
set(PLASMA_NO_KIO TRUE)
|
2011-08-01 21:53:32 +02:00
|
|
|
set(PLASMA_NO_PACKAGEKIT TRUE)
|
2011-07-21 14:39:55 +02:00
|
|
|
set(PLASMA_NO_PACKAGE_EXTRADATA TRUE)
|
2013-11-14 17:25:10 +01:00
|
|
|
endif()
|
2009-12-23 13:27:31 +01:00
|
|
|
|
2012-08-03 11:38:59 +02:00
|
|
|
if(NOT X11_FOUND)
|
2011-08-01 21:53:32 +02:00
|
|
|
set(PLASMA_NO_PACKAGEKIT TRUE)
|
2013-11-14 17:25:10 +01:00
|
|
|
endif()
|
2011-08-01 21:53:32 +02:00
|
|
|
|
2012-04-28 21:43:25 +02:00
|
|
|
#find_package(KdepimLibs 4.5.60)
|
|
|
|
#find_package(Gpgme)
|
2013-06-17 17:59:22 +02:00
|
|
|
#set_package_properties(KDEPIMLIBS PROPERTIES DESCRIPTION "KDE PIM libraries"
|
|
|
|
# URL "http://www.kde.org" TYPE OPTIONAL
|
|
|
|
# PURPOSE "Needed for building several Plasma DataEngines")
|
2012-04-28 21:43:25 +02:00
|
|
|
|
2010-04-29 07:57:34 +02:00
|
|
|
if(NOT PLASMA_NO_SOLID)
|
2013-10-04 23:40:30 +02:00
|
|
|
set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} KF5::Solid)
|
2013-11-14 17:25:10 +01:00
|
|
|
endif()
|
2010-04-29 07:57:34 +02:00
|
|
|
|
2011-08-01 21:53:32 +02:00
|
|
|
if(NOT PLASMA_NO_PACKAGEKIT)
|
|
|
|
add_definitions(-DPLASMA_ENABLE_PACKAGEKIT_SUPPORT=1)
|
2013-10-16 00:28:02 +02:00
|
|
|
set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} Qt5::DBus)
|
2013-11-14 17:25:10 +01:00
|
|
|
endif()
|
2011-08-01 21:53:32 +02:00
|
|
|
|
2009-09-10 09:26:04 +02:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-plasma.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h)
|
2009-09-02 04:27:16 +02:00
|
|
|
|
2011-04-29 15:18:35 +02:00
|
|
|
#FIXME: gpgme++ is in kdepimlibs, must move somewhere else!
|
2012-02-18 11:11:02 +01:00
|
|
|
include_directories(${KDEPIMLIBS_INCLUDE_DIRS} ${GPGME_INCLUDES})
|
2011-04-29 15:18:35 +02:00
|
|
|
|
2013-02-15 16:31:26 +01:00
|
|
|
add_subdirectory(autotests)
|
2013-06-24 15:24:33 +02:00
|
|
|
add_subdirectory(tests)
|
2008-11-04 00:08:39 +01:00
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2013-10-16 00:47:47 +02:00
|
|
|
set(Plasma_LIB_SRCS
|
2013-03-13 11:56:24 +01:00
|
|
|
#global
|
|
|
|
plasma.cpp
|
|
|
|
pluginloader.cpp
|
|
|
|
version.cpp
|
|
|
|
private/componentinstaller.cpp
|
|
|
|
|
|
|
|
#runners
|
2013-10-10 20:27:41 +02:00
|
|
|
abstractrunner.cpp
|
|
|
|
querymatch.cpp
|
|
|
|
runnercontext.cpp
|
|
|
|
runnermanager.cpp
|
|
|
|
runnersyntax.cpp
|
|
|
|
private/runnerjobs.cpp
|
2013-03-13 11:56:24 +01:00
|
|
|
|
|
|
|
#applets,containments,corona
|
|
|
|
applet.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
configloader.cpp
|
2013-03-13 11:56:24 +01:00
|
|
|
containment.cpp
|
2009-08-18 00:31:32 +02:00
|
|
|
containmentactions.cpp
|
2013-03-13 11:56:24 +01:00
|
|
|
corona.cpp
|
|
|
|
private/applet_p.cpp
|
|
|
|
private/associatedapplicationmanager.cpp
|
|
|
|
private/containment_p.cpp
|
|
|
|
|
|
|
|
#Dataengines, services
|
2008-11-04 00:08:39 +01:00
|
|
|
datacontainer.cpp
|
|
|
|
dataengine.cpp
|
2012-09-24 15:51:14 +02:00
|
|
|
dataengineconsumer.cpp
|
2013-03-13 11:56:24 +01:00
|
|
|
service.cpp
|
|
|
|
servicejob.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
private/datacontainer_p.cpp
|
2012-09-24 16:09:16 +02:00
|
|
|
private/dataenginemanager.cpp
|
2013-03-13 11:56:24 +01:00
|
|
|
private/storage.cpp
|
|
|
|
private/storagethread.cpp
|
2012-12-09 14:12:55 +01:00
|
|
|
|
2013-03-13 11:56:24 +01:00
|
|
|
#packages
|
|
|
|
package.cpp
|
|
|
|
packagestructure.cpp
|
2012-12-09 14:12:55 +01:00
|
|
|
private/packagejob.cpp
|
|
|
|
private/packagejobthread.cpp
|
2013-03-13 11:56:24 +01:00
|
|
|
private/packages.cpp
|
|
|
|
|
|
|
|
#graphics
|
|
|
|
framesvg.cpp
|
|
|
|
svg.cpp
|
|
|
|
theme.cpp
|
2013-03-11 20:20:50 +01:00
|
|
|
private/theme_p.cpp
|
2012-02-28 18:15:00 +01:00
|
|
|
|
2013-03-13 11:56:24 +01:00
|
|
|
#scripting
|
2008-11-04 00:08:39 +01:00
|
|
|
scripting/appletscript.cpp
|
|
|
|
scripting/dataenginescript.cpp
|
2013-10-10 20:27:41 +02:00
|
|
|
scripting/runnerscript.cpp
|
2008-11-04 00:08:39 +01:00
|
|
|
scripting/scriptengine.cpp
|
2011-05-31 01:05:01 +02:00
|
|
|
)
|
|
|
|
|
2013-10-16 00:47:47 +02:00
|
|
|
set(Plasma_LIB_SRCS ${Plasma_LIB_SRCS} private/effectwatcher.cpp)
|
2012-11-23 20:09:15 +01:00
|
|
|
|
2013-10-16 00:47:47 +02:00
|
|
|
kconfig_add_kcfg_files(Plasma_LIB_SRCS data/kconfigxt/libplasma-theme-global.kcfgc)
|
2009-10-07 20:44:33 +02:00
|
|
|
|
2008-11-04 00:08:39 +01:00
|
|
|
#NEPOMUK_GENERATE_FROM_ONTOLOGY(
|
|
|
|
# nwc.nrl
|
|
|
|
# ${metadata_test_BINARY_DIR}
|
|
|
|
# TEST_HEADERS
|
|
|
|
# TEST_SOURCES
|
|
|
|
# TEST_INCLUDES
|
|
|
|
#)
|
|
|
|
|
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
add_library(KF5Plasma ${Plasma_LIB_SRCS})
|
|
|
|
add_library(KF5::Plasma ALIAS KF5Plasma)
|
2008-11-04 00:08:39 +01:00
|
|
|
|
2013-12-27 14:46:45 +01:00
|
|
|
if(X11_FOUND)
|
|
|
|
set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} Qt5::X11Extras ${X11_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(DL_LIBRARY)
|
|
|
|
set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} ${DL_LIBRARY})
|
|
|
|
endif()
|
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
target_link_libraries(KF5Plasma
|
2013-12-27 14:46:45 +01:00
|
|
|
PUBLIC
|
|
|
|
Qt5::Widgets
|
|
|
|
KF5::ConfigWidgets
|
|
|
|
KF5::Service # For kplugininfo.h and kservice.h
|
|
|
|
PRIVATE
|
2013-10-16 00:28:02 +02:00
|
|
|
Qt5::Network
|
|
|
|
Qt5::Sql
|
|
|
|
Qt5::Quick # needed in service.cpp, remove?
|
2013-08-20 07:47:09 +02:00
|
|
|
Qt5::Svg
|
2013-10-01 14:12:14 +02:00
|
|
|
Qt5::DBus
|
2013-10-16 00:28:02 +02:00
|
|
|
Qt5::UiTools
|
2013-10-22 17:57:55 +02:00
|
|
|
Qt5::Xml
|
2013-12-11 14:01:52 +01:00
|
|
|
KF5::Archive
|
|
|
|
KF5::GuiAddons
|
|
|
|
KF5::IconThemes
|
|
|
|
KF5::I18n
|
2013-10-04 19:18:34 +02:00
|
|
|
KF5::KIOCore
|
|
|
|
KF5::KIOWidgets
|
2013-10-16 00:28:02 +02:00
|
|
|
KF5::ThreadWeaver
|
2013-12-11 14:01:52 +01:00
|
|
|
KF5::WindowSystem
|
|
|
|
KF5::Auth
|
|
|
|
KF5::Declarative
|
2013-10-22 17:57:55 +02:00
|
|
|
KF5::XmlGui
|
2013-12-10 08:25:23 +01:00
|
|
|
KF5::GlobalAccel
|
2013-12-18 18:30:54 +01:00
|
|
|
KF5::DNSSD
|
2013-12-19 15:23:00 +01:00
|
|
|
KF5::KDE4Support #ksharedptr
|
2013-10-16 00:28:02 +02:00
|
|
|
${PLASMA_EXTRA_LIBS}
|
2013-04-03 00:10:04 +02:00
|
|
|
)
|
2009-09-09 20:47:11 +02:00
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
target_include_directories(KF5Plasma PUBLIC
|
2013-10-12 15:55:19 +02:00
|
|
|
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..;${CMAKE_CURRENT_BINARY_DIR}/..;${CMAKE_CURRENT_SOURCE_DIR}/includes>"
|
2013-10-12 15:24:32 +02:00
|
|
|
)
|
2013-12-11 12:39:48 +01:00
|
|
|
target_include_directories(KF5Plasma INTERFACE
|
2013-10-12 15:24:32 +02:00
|
|
|
"$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR};${INCLUDE_INSTALL_DIR}/KDE>"
|
|
|
|
)
|
2008-11-11 00:52:13 +01:00
|
|
|
|
2013-10-16 00:47:47 +02:00
|
|
|
#do NOT use GENERIC versioning -- the Plasma team will take care of versioning
|
2013-12-11 12:39:48 +01:00
|
|
|
set_target_properties(KF5Plasma PROPERTIES
|
|
|
|
VERSION 5.0.0
|
|
|
|
SOVERSION 5
|
|
|
|
EXPORT_NAME Plasma
|
2008-11-04 00:08:39 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
########### install files ###############
|
2013-12-11 13:53:09 +01:00
|
|
|
generate_export_header(KF5Plasma BASE_NAME Plasma)
|
2008-11-04 00:08:39 +01:00
|
|
|
|
2013-10-16 00:47:47 +02:00
|
|
|
set(Plasma_LIB_INCLUDES
|
2013-10-10 20:27:41 +02:00
|
|
|
abstractrunner.h
|
2008-11-04 00:08:39 +01:00
|
|
|
applet.h
|
|
|
|
configloader.h
|
|
|
|
containment.h
|
2009-08-18 00:31:32 +02:00
|
|
|
containmentactions.h
|
2008-11-04 00:08:39 +01:00
|
|
|
corona.h
|
|
|
|
datacontainer.h
|
|
|
|
dataengine.h
|
2013-08-28 03:52:14 +02:00
|
|
|
dataengineconsumer.h
|
2010-07-15 23:06:21 +02:00
|
|
|
pluginloader.h
|
2008-11-04 00:08:39 +01:00
|
|
|
framesvg.h
|
2011-05-31 01:04:33 +02:00
|
|
|
package.h
|
2011-07-19 21:36:29 +02:00
|
|
|
packagestructure.h
|
2008-11-04 00:08:39 +01:00
|
|
|
plasma.h
|
2012-06-16 22:06:11 +02:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/plasma_export.h
|
2013-10-10 20:27:41 +02:00
|
|
|
querymatch.h
|
|
|
|
runnercontext.h
|
|
|
|
runnermanager.h
|
|
|
|
runnersyntax.h
|
2008-11-04 00:08:39 +01:00
|
|
|
service.h
|
|
|
|
servicejob.h
|
|
|
|
svg.h
|
|
|
|
theme.h
|
2013-01-29 19:36:46 +01:00
|
|
|
version.h)
|
2008-11-04 00:08:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
install(FILES
|
2013-10-16 00:47:47 +02:00
|
|
|
${Plasma_LIB_INCLUDES}
|
2008-11-04 00:08:39 +01:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma COMPONENT Devel)
|
|
|
|
|
2013-02-05 17:48:34 +01:00
|
|
|
install(DIRECTORY
|
|
|
|
includes/Plasma
|
2013-10-07 12:49:28 +02:00
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/KDE/ COMPONENT Devel)
|
2013-02-05 17:48:34 +01:00
|
|
|
|
2008-11-04 00:08:39 +01:00
|
|
|
|
|
|
|
install(FILES
|
|
|
|
scripting/appletscript.h
|
|
|
|
scripting/dataenginescript.h
|
2013-10-08 17:37:15 +02:00
|
|
|
#scripting/runnerscript.h
|
2008-11-04 00:08:39 +01:00
|
|
|
scripting/scriptengine.h
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/scripting COMPONENT Devel)
|
|
|
|
|
|
|
|
install(FILES
|
2009-09-03 22:40:22 +02:00
|
|
|
data/servicetypes/plasma-applet.desktop
|
|
|
|
data/servicetypes/plasma-containment.desktop
|
|
|
|
data/servicetypes/plasma-containmentactions.desktop
|
|
|
|
data/servicetypes/plasma-dataengine.desktop
|
2013-05-02 23:54:11 +02:00
|
|
|
data/servicetypes/plasma-generic.desktop
|
2009-09-03 22:40:22 +02:00
|
|
|
data/servicetypes/plasma-packagestructure.desktop
|
|
|
|
data/servicetypes/plasma-runner.desktop
|
|
|
|
data/servicetypes/plasma-scriptengine.desktop
|
2010-10-23 16:19:07 +02:00
|
|
|
data/servicetypes/plasma-service.desktop
|
2013-04-25 03:23:53 +02:00
|
|
|
data/servicetypes/plasma-shell.desktop
|
|
|
|
data/servicetypes/plasma-lookandfeel.desktop
|
2008-11-04 00:08:39 +01:00
|
|
|
DESTINATION ${SERVICETYPES_INSTALL_DIR})
|
|
|
|
|
2009-09-03 22:40:22 +02:00
|
|
|
install(FILES data/operations/dataengineservice.operations DESTINATION ${DATA_INSTALL_DIR}/plasma/services)
|
|
|
|
install(FILES data/operations/plasmoidservice.operations DESTINATION ${DATA_INSTALL_DIR}/plasma/services)
|
2010-07-12 22:51:12 +02:00
|
|
|
install(FILES data/operations/storage.operations DESTINATION ${DATA_INSTALL_DIR}/plasma/services)
|
2009-09-02 11:45:52 +02:00
|
|
|
|
2013-12-11 12:39:48 +01:00
|
|
|
install(TARGETS KF5Plasma EXPORT KF5PlasmaTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2013-06-13 16:01:06 +02:00
|
|
|
|