2016-04-25 22:30:11 +02:00
|
|
|
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
|
|
|
|
|
|
|
# add project files
|
|
|
|
set(WIDGETS_HEADER_FILES
|
|
|
|
mainwindow.h
|
|
|
|
webpage.h
|
|
|
|
webviewprovider.h
|
|
|
|
)
|
|
|
|
set(WIDGETS_SRC_FILES
|
|
|
|
main.cpp
|
|
|
|
mainwindow.cpp
|
|
|
|
webpage.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(ICON_FILES
|
2016-05-26 02:29:56 +02:00
|
|
|
../resources/icons/hicolor/scalable/apps/${META_PROJECT_NAME}.svg
|
2016-04-25 22:30:11 +02:00
|
|
|
)
|
|
|
|
|
2016-09-17 12:59:33 +02:00
|
|
|
set(META_PROJECT_TYPE application)
|
|
|
|
|
2016-04-25 22:30:11 +02:00
|
|
|
# find c++utilities
|
2016-09-17 12:59:33 +02:00
|
|
|
find_package(c++utilities 4.0.0 REQUIRED)
|
2016-04-25 22:30:11 +02:00
|
|
|
use_cpp_utilities()
|
|
|
|
|
|
|
|
# find qtutilities
|
2016-09-17 12:59:33 +02:00
|
|
|
find_package(qtutilities 5.0.0 REQUIRED)
|
2016-04-25 22:30:11 +02:00
|
|
|
use_qt_utilities()
|
|
|
|
|
|
|
|
# add Qt modules which can currently not be detected automatically
|
|
|
|
list(APPEND ADDITIONAL_QT_MODULES Network)
|
|
|
|
|
|
|
|
# suffix the target to avoid conflict with cli target
|
|
|
|
set(TARGET_SUFFIX "-gui")
|
|
|
|
|
|
|
|
# need to link against the repoindex lib
|
|
|
|
list(APPEND LIBRARIES lib${META_PROJECT_NAME})
|
|
|
|
|
|
|
|
# include modules to apply configuration
|
|
|
|
include(BasicConfig)
|
|
|
|
include(QtGuiConfig)
|
|
|
|
include(QtConfig)
|
|
|
|
include(WindowsResources)
|
|
|
|
include(WebViewProviderConfig)
|
|
|
|
include(AppTarget)
|
2016-07-04 23:32:10 +02:00
|
|
|
include(ShellCompletion)
|
2016-09-17 12:59:33 +02:00
|
|
|
include(ConfigHeader)
|
2016-04-25 22:30:11 +02:00
|
|
|
|
|
|
|
# create desktop file using previously defined meta data
|
|
|
|
add_desktop_file()
|