2013-08-21 17:28:11 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
${CMAKE_BINARY_DIR})
|
2014-01-28 22:22:59 +00:00
|
|
|
|
2013-08-21 17:28:11 +01:00
|
|
|
set(kdeconnectdeclarativeplugin_SRC
|
|
|
|
kdeconnectdeclarativeplugin.cpp
|
2014-01-28 22:22:59 +00:00
|
|
|
responsewaiter.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(kdeconnectdeclarativeplugin_MOC
|
|
|
|
objectfactory.h
|
2013-08-21 17:28:11 +01:00
|
|
|
)
|
2013-11-15 16:41:33 +00:00
|
|
|
|
2014-01-28 22:22:59 +00:00
|
|
|
qt4_wrap_cpp(kdeconnectdeclarativeplugin_SRC ${kdeconnectdeclarativeplugin_MOC})
|
|
|
|
|
2013-08-21 17:28:11 +01:00
|
|
|
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)
|