22718a0bd9
Due to bug occured in QML property access(when object derived from QDBusAbstract interface) C++ part of BatteryPlugin in plasmoid rewritten in pure QML. BatteryPluginDBusInterface fixed to avoid this bug. Bug occuring when QML try to access any property of any object derived from QDBusAvstractInterface - QML engine crashes.
28 lines
938 B
CMake
28 lines
938 B
CMake
include_directories(${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}
|
|
${CMAKE_BINARY_DIR})
|
|
|
|
set(kdeconnectdeclarativeplugin_SRC
|
|
kdeconnectdeclarativeplugin.cpp
|
|
responsewaiter.cpp
|
|
)
|
|
|
|
set(kdeconnectdeclarativeplugin_MOC
|
|
objectfactory.h
|
|
)
|
|
|
|
qt4_wrap_cpp(kdeconnectdeclarativeplugin_SRC ${kdeconnectdeclarativeplugin_MOC})
|
|
|
|
kde4_add_library(kdeconnectdeclarativeplugin SHARED ${kdeconnectdeclarativeplugin_SRC})
|
|
add_dependencies(kdeconnectdeclarativeplugin libkdeconnect)
|
|
target_link_libraries(kdeconnectdeclarativeplugin
|
|
${KDE4_KDEUI_LIBS}
|
|
${KDE4_KDECORE_LIBS}
|
|
${QT_QTCORE_LIBRARY}
|
|
${QT_QTGUI_LIBRARY}
|
|
${QT_QTDECLARATIVE_LIBRARY}
|
|
kdeconnect
|
|
)
|
|
install(TARGETS kdeconnectdeclarativeplugin DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/kdeconnect)
|
|
install(FILES qmldir DESTINATION ${IMPORTS_INSTALL_DIR}/org/kde/kdeconnect)
|