2012-03-15 19:57:43 +01:00
project ( plasmaextracomponents )
2012-06-10 10:09:30 +02:00
find_package ( KActivities NO_MODULE )
macro_log_feature ( KActivities_FOUND "KActivities" "Library and infrastructure for using Activities from applications" "git://anongit.kde.org/kactivities" TRUE "" "Provides the ability to access activities from QML." )
2012-03-15 22:04:34 +01:00
#include(KDE4Defaults)
2012-03-15 19:57:43 +01:00
set ( plasmaextracomponents_SRCS
2012-03-15 21:54:38 +01:00
a p p b a c k g r o u n d p r o v i d e r . c p p
2012-03-15 22:04:34 +01:00
r e s o u r c e i n s t a n c e . c p p
2012-03-15 19:57:43 +01:00
p l a s m a e x t r a c o m p o n e n t s p l u g i n . c p p
)
2012-03-20 12:08:48 +01:00
include_directories (
$ { K A C T I V I T I E S _ I N C L U D E _ D I R S }
2012-03-15 19:57:43 +01:00
)
qt4_automoc ( ${ plasmaextracomponents_SRCS } )
add_library ( plasmaextracomponentsplugin SHARED ${ plasmaextracomponents_SRCS } )
2012-03-15 22:04:34 +01:00
target_link_libraries ( plasmaextracomponentsplugin ${ QT_QTCORE_LIBRARY } ${ QT_QTDECLARATIVE_LIBRARY } ${ QT_QTGUI_LIBRARY } ${ KDE4_PLASMA_LIBS } ${ KACTIVITIES_LIBRARY } )
2012-03-15 19:57:43 +01:00
install ( TARGETS plasmaextracomponentsplugin DESTINATION ${ IMPORTS_INSTALL_DIR } /org/kde/plasma/extras )
install ( DIRECTORY qml/ DESTINATION ${ IMPORTS_INSTALL_DIR } /org/kde/plasma/extras )
# The platform specific stuff, overwrites a copy of the desktop one
# it does install some files on top of the old ones, has to be done
# file by file since if some component from the generic set is more
# recent than the specifc ones, it wouldn't be overwritten
2012-04-03 17:50:48 +02:00
#install(TARGETS plasmaextracomponentsplugin DESTINATION ${PLUGIN_INSTALL_DIR}/platformimports/touch/org/kde/plasma/extras)
#install(FILES qml/qmldir DESTINATION ${PLUGIN_INSTALL_DIR}/platformimports/touch/org/kde/plasma/extras)
2012-03-15 19:57:43 +01:00
2012-04-03 17:50:48 +02:00
# install(FILES qml/App.qml DESTINATION ${PLUGIN_INSTALL_DIR}/platformimports/touch/org/kde/plasma/extras)
# install(FILES qml/Heading.qml DESTINATION ${PLUGIN_INSTALL_DIR}/platformimports/touch/org/kde/plasma/extras)
# install(FILES qml/Paragraph.qml DESTINATION ${PLUGIN_INSTALL_DIR}/platformimports/touch/org/kde/plasma/extras)
# install(FILES qml/Title.qml DESTINATION ${PLUGIN_INSTALL_DIR}/platformimports/touch/org/kde/plasma/extras)
# install(DIRECTORY qml/animations/ DESTINATION ${PLUGIN_INSTALL_DIR}/platformimports/touch/org/kde/plasma/extras)
2012-03-15 19:57:43 +01:00
2012-04-03 17:50:48 +02:00
#install(DIRECTORY qml/animations/ DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/plasma/extras)
2012-03-30 00:33:29 +02:00
2012-03-19 23:03:16 +01:00
#install platform overrides -- enable as we use this feature for plasmaextras
#install(DIRECTORY platformcomponents/touch/ DESTINATION ${PLUGIN_INSTALL_DIR}/platformimports/touch/org/kde/plasma/extras)