repoindex/gui/CMakeLists.txt

51 lines
1.1 KiB
CMake
Raw Normal View History

2016-04-25 22:30:11 +02:00
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
2018-09-29 11:38:43 +02:00
set(META_PROJECT_TYPE application)
set(META_GUI_OPTIONAL false)
2016-04-25 22:30:11 +02:00
# add project files
set(WIDGETS_HEADER_FILES
mainwindow.h
webpage.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
)
# find c++utilities
2019-03-14 18:15:03 +01:00
find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED)
2016-04-25 22:30:11 +02:00
use_cpp_utilities()
# find qtutilities
2019-06-10 15:39:56 +02:00
find_package(qtutilities${CONFIGURATION_PACKAGE_SUFFIX} 6.0.0 REQUIRED)
2016-04-25 22:30:11 +02:00
use_qt_utilities()
2017-01-22 20:47:14 +01:00
# find repoindex
find_package(librepoindex ${META_APP_VERSION} REQUIRED)
use_librepoindex()
2016-04-25 22:30:11 +02:00
# 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")
# include modules to apply configuration
include(BasicConfig)
include(QtGuiConfig)
2019-06-10 15:39:56 +02:00
include(QtWebViewProviderConfig)
2016-04-25 22:30:11 +02:00
include(QtConfig)
include(WindowsResources)
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()