459da3ea44
The Plastik decoration buttons are provided by a declarative extension plugin as the canvas drawing API would be needed to draw these buttons. This should be changed with Qt 5. But it's also a nice example to show how a QML based decoration can have an extension in C++.
11 lines
479 B
CMake
11 lines
479 B
CMake
set(plastik_plugin_SRCS
|
|
plastikbutton.cpp
|
|
plastikplugin.cpp
|
|
)
|
|
|
|
qt4_automoc(${plastik_plugin_SRCS})
|
|
|
|
add_library(plastikplugin SHARED ${plastik_plugin_SRCS})
|
|
target_link_libraries(plastikplugin ${QT_QTCORE_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY} ${KDE4_KDEUI_LIBRARY} kdecorations)
|
|
install(TARGETS plastikplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/kwin/decorations/plastik)
|
|
install(FILES qmldir DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/kwin/decorations/plastik)
|