syncthingtray/CMakeLists.txt

166 lines
3.8 KiB
CMake
Raw Normal View History

2016-08-25 00:45:32 +02:00
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
# metadata
set(META_PROJECT_NAME syncthingtray)
set(META_PROJECT_TYPE application)
set(META_APP_NAME "Syncthing Tray")
set(META_APP_AUTHOR "Martchus")
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
set(META_APP_DESCRIPTION "Tray application for Syncthing")
set(META_APP_CATEGORIES "Utility;Network;")
set(META_GUI_OPTIONAL false)
set(META_VERSION_MAJOR 0)
set(META_VERSION_MINOR 0)
2016-09-21 21:09:12 +02:00
set(META_VERSION_PATCH 2)
2016-08-25 00:45:32 +02:00
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
# add project files
set(HEADER_FILES
data/syncthingconnection.h
data/syncthingconnectionsettings.h
2016-08-25 00:45:32 +02:00
data/syncthingdirectorymodel.h
data/syncthingdevicemodel.h
2016-09-21 21:09:12 +02:00
data/syncthingdownloadmodel.h
2016-09-01 16:34:30 +02:00
data/syncthingconfig.h
2016-09-03 19:39:43 +02:00
data/syncthingprocess.h
2016-09-01 16:34:30 +02:00
data/utils.h
2016-08-25 00:45:32 +02:00
)
set(SRC_FILES
data/syncthingconnection.cpp
data/syncthingconnectionsettings.cpp
2016-08-25 00:45:32 +02:00
data/syncthingdirectorymodel.cpp
data/syncthingdevicemodel.cpp
2016-09-21 21:09:12 +02:00
data/syncthingdownloadmodel.cpp
2016-09-01 16:34:30 +02:00
data/syncthingconfig.cpp
2016-09-03 19:39:43 +02:00
data/syncthingprocess.cpp
2016-09-01 16:34:30 +02:00
data/utils.cpp
2016-08-25 00:45:32 +02:00
)
set(WIDGETS_HEADER_FILES
application/settings.h
application/singleinstance.h
2016-08-30 20:01:07 +02:00
gui/trayicon.h
gui/traywidget.h
gui/traymenu.h
2016-08-25 00:45:32 +02:00
gui/settingsdialog.h
gui/webpage.h
gui/webviewdialog.h
gui/webviewprovider.h
gui/dirbuttonsitemdelegate.h
2016-08-26 16:43:53 +02:00
gui/devbuttonsitemdelegate.h
2016-09-21 21:09:12 +02:00
gui/downloaditemdelegate.h
2016-08-25 00:45:32 +02:00
gui/dirview.h
gui/devview.h
2016-09-21 21:09:12 +02:00
gui/downloadview.h
gui/textviewdialog.h
2016-08-25 00:45:32 +02:00
)
set(WIDGETS_SRC_FILES
application/main.cpp
application/settings.cpp
application/singleinstance.cpp
2016-08-30 20:01:07 +02:00
gui/trayicon.cpp
gui/traywidget.cpp
gui/traymenu.cpp
2016-08-25 00:45:32 +02:00
gui/settingsdialog.cpp
gui/webpage.cpp
gui/webviewdialog.cpp
gui/dirbuttonsitemdelegate.cpp
2016-08-26 16:43:53 +02:00
gui/devbuttonsitemdelegate.cpp
2016-09-21 21:09:12 +02:00
gui/downloaditemdelegate.cpp
2016-08-25 00:45:32 +02:00
gui/dirview.cpp
gui/devview.cpp
2016-09-21 21:09:12 +02:00
gui/downloadview.cpp
gui/textviewdialog.cpp
2016-08-25 00:45:32 +02:00
resources/icons.qrc
)
set(WIDGETS_UI_FILES
gui/traywidget.ui
gui/connectionoptionpage.ui
gui/notificationsoptionpage.ui
2016-08-29 20:51:30 +02:00
gui/appearanceoptionpage.ui
2016-08-30 20:01:07 +02:00
gui/autostartoptionpage.ui
2016-09-03 19:39:43 +02:00
gui/launcheroptionpage.ui
2016-08-25 00:45:32 +02:00
gui/webviewoptionpage.ui
)
#set(QUICK_HEADER_FILES
#)
#set(QUICK_SRC_FILES
#)
set(TS_FILES
translations/${META_PROJECT_NAME}_de_DE.ts
translations/${META_PROJECT_NAME}_en_US.ts
)
set(ICON_FILES
2016-09-06 22:54:59 +02:00
resources/icons/hicolor/scalable/app/${META_PROJECT_NAME}.svg
2016-08-25 00:45:32 +02:00
)
2016-09-06 22:54:59 +02:00
set(PNG_ICON_PATH "${CMAKE_CURRENT_SOURCE_DIR}/resources/icons/hicolor/scalable/app/${META_PROJECT_NAME}.png")
set(PNG_ICON_NO_CROP ON)
2016-08-25 00:45:32 +02:00
set(DOC_FILES
README.md
)
2016-08-29 20:51:30 +02:00
set(REQUIRED_ICONS
2016-09-03 20:14:52 +02:00
dialog-cancel
dialog-ok
dialog-ok-apply
2016-08-29 20:51:30 +02:00
edit-copy
2016-09-01 16:34:30 +02:00
edit-paste
2016-08-29 20:51:30 +02:00
folder
2016-09-21 21:09:12 +02:00
folder-download
2016-09-03 20:14:52 +02:00
folder-open
2016-08-29 20:51:30 +02:00
folder-sync
2016-09-03 20:14:52 +02:00
help-about
2016-08-29 20:51:30 +02:00
internet-web-browser
2016-09-03 20:14:52 +02:00
list-add
list-remove
media-playback-pause
media-playback-start
network-card
2016-09-01 16:34:30 +02:00
network-connect
2016-09-03 20:14:52 +02:00
network-server
2016-09-01 16:34:30 +02:00
preferences-desktop
preferences-desktop-icons
preferences-desktop-locale
2016-09-03 20:14:52 +02:00
preferences-desktop-notification
preferences-other
qtcreator
system-run
system-search
system-file-manager
text-plain
view-barcode
view-refresh
window-close
2016-08-29 20:51:30 +02:00
)
2016-08-25 00:45:32 +02:00
# find c++utilities
find_package(c++utilities 4.0.0 REQUIRED)
use_cpp_utilities()
include(BasicConfig)
# find qtutilities
if(WIDGETS_GUI OR QUICK_GUI)
find_package(qtutilities 5.0.0 REQUIRED)
use_qt_utilities()
endif()
list(APPEND ADDITIONAL_QT_MODULES Network Svg)
# include modules to apply configuration
include(BasicConfig)
include(QtGuiConfig)
include(QtConfig)
include(WindowsResources)
include(WebViewProviderConfig)
include(AppTarget)
include(ShellCompletion)
2016-09-27 21:20:17 +02:00
include(Doxygen)
2016-08-25 00:45:32 +02:00
include(ConfigHeader)
# create desktop file using previously defined meta data
add_desktop_file()