2017-08-29 23:58:49 +02:00
|
|
|
# source files
|
|
|
|
set(HEADER_FILES
|
|
|
|
syncthingapplet.h
|
2017-09-09 21:40:00 +02:00
|
|
|
settingsdialog.h
|
2017-08-29 23:58:49 +02:00
|
|
|
)
|
|
|
|
set(SRC_FILES
|
|
|
|
syncthingapplet.cpp
|
2017-09-09 21:40:00 +02:00
|
|
|
settingsdialog.cpp
|
2017-08-29 23:58:49 +02:00
|
|
|
)
|
2017-09-18 20:29:36 +02:00
|
|
|
set(WIDGETS_UI_FILES
|
|
|
|
appearanceoptionpage.ui
|
|
|
|
)
|
2017-08-29 23:58:49 +02:00
|
|
|
set(PLASMOID_FILES
|
|
|
|
../package/metadata.desktop
|
|
|
|
../package/contents/ui/CompactRepresentation.qml
|
|
|
|
../package/contents/ui/FullRepresentation.qml
|
|
|
|
../package/contents/ui/DirectoriesPage.qml
|
|
|
|
../package/contents/ui/DevicesPage.qml
|
|
|
|
../package/contents/ui/DownloadsPage.qml
|
|
|
|
../package/contents/ui/TopLevelView.qml
|
|
|
|
../package/contents/ui/TopLevelItem.qml
|
|
|
|
../package/contents/ui/DetailView.qml
|
|
|
|
../package/contents/ui/DetailItem.qml
|
2017-09-09 21:40:00 +02:00
|
|
|
../package/contents/ui/ToolTipView.qml
|
2017-09-12 00:00:16 +02:00
|
|
|
../package/contents/ui/TinyButton.qml
|
|
|
|
../package/contents/ui/TinyButtonStyle.qml
|
|
|
|
../package/contents/ui/ButtonShadow.qml
|
2017-08-29 23:58:49 +02:00
|
|
|
../package/contents/ui/main.qml
|
|
|
|
)
|
2017-09-09 21:40:00 +02:00
|
|
|
list(APPEND QML_SRC_FILES ${PLASMOID_FILES})
|
|
|
|
|
|
|
|
set(TS_FILES
|
|
|
|
../translations/${META_PROJECT_NAME}_de_DE.ts
|
|
|
|
../translations/${META_PROJECT_NAME}_en_US.ts
|
|
|
|
)
|
2017-08-29 23:58:49 +02:00
|
|
|
|
|
|
|
# find c++utilities
|
2017-09-09 21:40:00 +02:00
|
|
|
find_package(c++utilities 4.10.0 REQUIRED)
|
2017-08-29 23:58:49 +02:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CPP_UTILITIES_MODULE_DIRS})
|
|
|
|
|
|
|
|
# find qtutilities
|
2017-09-27 00:21:53 +02:00
|
|
|
find_package(qtutilities 5.8.0 REQUIRED)
|
2017-08-29 23:58:49 +02:00
|
|
|
use_qt_utilities()
|
|
|
|
|
2017-09-08 16:59:53 +02:00
|
|
|
# check whether qtutilities supports DBus notifications
|
2017-09-09 15:39:39 +02:00
|
|
|
get_target_property(QT_UTILITIES_COMPILE_DEFINITIONS ${QT_UTILITIES_LIB} INTERFACE_COMPILE_DEFINITIONS)
|
2017-09-08 16:59:53 +02:00
|
|
|
list(FIND QT_UTILITIES_COMPILE_DEFINITIONS QT_UTILITIES_SUPPORT_DBUS_NOTIFICATIONS QT_UTILITIES_SUPPORT_DBUS_NOTIFICATIONS)
|
|
|
|
if(QT_UTILITIES_SUPPORT_DBUS_NOTIFICATIONS LESS 0)
|
|
|
|
message(FATAL_ERROR "The provided build of Qt Utilities does not support D-Bus notifications which is required for the Plasmoid.")
|
|
|
|
endif()
|
|
|
|
|
2017-08-29 23:58:49 +02:00
|
|
|
# find backend libraries
|
|
|
|
find_package(syncthingconnector ${META_APP_VERSION} REQUIRED)
|
|
|
|
use_syncthingconnector()
|
|
|
|
find_package(syncthingmodel ${META_APP_VERSION} REQUIRED)
|
|
|
|
use_syncthingmodel()
|
|
|
|
find_package(syncthingwidgets ${META_APP_VERSION} REQUIRED)
|
|
|
|
use_syncthingwidgets()
|
|
|
|
|
|
|
|
# link also explicitely against the following Qt 5 modules
|
|
|
|
list(APPEND ADDITIONAL_QT_MODULES Network Qml)
|
|
|
|
list(APPEND ADDITIONAL_KF_MODULES Plasma)
|
|
|
|
|
|
|
|
include(BasicConfig)
|
|
|
|
include(QtGuiConfig)
|
|
|
|
include(QtConfig)
|
|
|
|
include(WindowsResources)
|
|
|
|
include(LibraryTarget)
|
|
|
|
include(ConfigHeader)
|
|
|
|
|
|
|
|
# what ever this does, it is done
|
|
|
|
kcoreaddons_desktop_to_json("${META_PROJECT_NAME}" ../package/metadata.desktop)
|