2017-02-20 18:37:11 +01:00
|
|
|
# metadata
|
|
|
|
set(META_PROJECT_NAME syncthingfileitemaction)
|
|
|
|
set(META_APP_NAME "Syncthing KIO-Plugin")
|
|
|
|
set(META_APP_DESCRIPTION "KIO file item action for Syncthing")
|
|
|
|
set(META_PROJECT_TYPE qtplugin)
|
|
|
|
|
|
|
|
# add project files
|
|
|
|
set(HEADER_FILES
|
2017-02-25 18:55:42 +01:00
|
|
|
${META_PROJECT_NAME}.h
|
2017-02-20 18:37:11 +01:00
|
|
|
)
|
|
|
|
set(SRC_FILES
|
2017-02-25 18:55:42 +01:00
|
|
|
${META_PROJECT_NAME}.cpp
|
2017-02-20 18:37:11 +01:00
|
|
|
)
|
|
|
|
|
2017-02-26 18:59:37 +01:00
|
|
|
set(TS_FILES
|
|
|
|
translations/${META_PROJECT_NAME}_de_DE.ts
|
|
|
|
translations/${META_PROJECT_NAME}_en_US.ts
|
|
|
|
)
|
|
|
|
|
2017-02-20 18:37:11 +01:00
|
|
|
# find c++utilities
|
|
|
|
find_package(c++utilities 4.6.0 REQUIRED)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CPP_UTILITIES_MODULE_DIRS})
|
|
|
|
|
|
|
|
# find qtutilities
|
|
|
|
find_package(qtutilities 5.0.0 REQUIRED)
|
|
|
|
use_qt_utilities()
|
|
|
|
|
|
|
|
# find backend libraries
|
|
|
|
find_package(syncthingconnector ${META_APP_VERSION} REQUIRED)
|
|
|
|
use_syncthingconnector()
|
|
|
|
find_package(syncthingmodel ${META_APP_VERSION} REQUIRED)
|
|
|
|
use_syncthingmodel()
|
|
|
|
|
|
|
|
# link also explicitely against the following Qt 5 modules
|
|
|
|
list(APPEND ADDITIONAL_QT_MODULES Network)
|
|
|
|
list(APPEND ADDITIONAL_KF_MODULES KIO)
|
|
|
|
|
|
|
|
# include modules to apply configuration
|
|
|
|
include(BasicConfig)
|
|
|
|
include(QtGuiConfig)
|
|
|
|
include(QtConfig)
|
|
|
|
include(WindowsResources)
|
|
|
|
# KIO libs can not be determined automatically
|
|
|
|
list(REMOVE_ITEM PRIVATE_LIBRARIES KF5::KIO)
|
|
|
|
list(APPEND PRIVATE_LIBRARIES KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets KF5::KIONTLM)
|
|
|
|
include(LibraryTarget)
|
|
|
|
include(ConfigHeader)
|
2017-02-25 18:55:42 +01:00
|
|
|
|
|
|
|
install(
|
|
|
|
FILES ${META_PROJECT_NAME}.desktop
|
|
|
|
DESTINATION "share/kservices5"
|
|
|
|
COMPONENT desktop
|
|
|
|
)
|