Apply build system changes

This commit is contained in:
Martchus 2018-09-29 11:38:43 +02:00
parent 1ce57a1af8
commit 6916bbffcc
5 changed files with 58 additions and 6 deletions

View File

@ -10,6 +10,7 @@ set(META_APP_DESCRIPTION "Repository browser for Arch Linux")
set(META_VERSION_MAJOR 0)
set(META_VERSION_MINOR 2)
set(META_VERSION_PATCH 6)
set(META_NO_TIDY ON)
project(${META_PROJECT_NAME})

View File

@ -1,5 +1,8 @@
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
set(META_PROJECT_TYPE application)
set(META_GUI_OPTIONAL false)
# add project files
set(WIDGETS_HEADER_FILES
mainwindow.h
@ -16,8 +19,6 @@ set(ICON_FILES
../resources/icons/hicolor/scalable/apps/${META_PROJECT_NAME}.svg
)
set(META_PROJECT_TYPE application)
# find c++utilities
find_package(c++utilities 4.0.0 REQUIRED)
use_cpp_utilities()

30
gui/gui/webviewdefs.h Normal file
View File

@ -0,0 +1,30 @@
// Created via CMake from template webviewdefs.h.in
// WARNING! Any changes to this file will be overwritten by the next CMake run!
#ifndef REPOINDEX_WEB_VIEW_DEFINES
#define REPOINDEX_WEB_VIEW_DEFINES
#include <QtGlobal>
#if defined(REPOINDEX_USE_WEBENGINE)
# define REPOINDEX_WEB_VIEW QWebEngineView
# define REPOINDEX_WEB_PAGE QWebEnginePage
#elif defined(REPOINDEX_USE_WEBKIT)
# define REPOINDEX_WEB_VIEW QWebView
# define REPOINDEX_WEB_PAGE QWebPage
# define REPOINDEX_WEB_FRAME QWebFrame
#elif !defined(REPOINDEX_NO_WEBVIEW)
# error "No definition for web view provider present."
#endif
#ifdef REPOINDEX_WEB_VIEW
QT_FORWARD_DECLARE_CLASS(REPOINDEX_WEB_VIEW)
#endif
#ifdef REPOINDEX_WEB_PAGE
QT_FORWARD_DECLARE_CLASS(REPOINDEX_WEB_PAGE)
#endif
#ifdef REPOINDEX_WEB_FRAME
QT_FORWARD_DECLARE_CLASS(REPOINDEX_WEB_FRAME)
#endif
#endif // REPOINDEX_WEB_VIEW_DEFINES

20
gui/gui/webviewincludes.h Normal file
View File

@ -0,0 +1,20 @@
// Created via CMake from template webviewincludes.h.in
// WARNING! Any changes to this file will be overwritten by the next CMake run!
#ifndef REPOINDEX_WEB_VIEW_INCLUDES
#define REPOINDEX_WEB_VIEW_INCLUDES
#include <QtGlobal>
#if defined(REPOINDEX_USE_WEBENGINE)
# include <QWebEngineView>
# include <QWebEnginePage>
#elif defined(REPOINDEX_USE_WEBKIT)
# include <QWebView>
# include <QWebPage>
# include <QWebFrame>
#elif !defined(REPOINDEX_NO_WEBVIEW)
# error "No definition for web view provider present."
#endif
#endif // REPOINDEX_WEB_VIEW_INCLUDES

View File

@ -7,11 +7,11 @@
#include <c++utilities/application/global.h>
#ifdef LIBREPOINDEX_STATIC
# define LIBREPOINDEX_EXPORT
# define LIBREPOINDEX_IMPORT
#define LIBREPOINDEX_EXPORT
#define LIBREPOINDEX_IMPORT
#else
# define LIBREPOINDEX_EXPORT LIB_EXPORT
# define LIBREPOINDEX_IMPORT LIB_IMPORT
#define LIBREPOINDEX_EXPORT LIB_EXPORT
#define LIBREPOINDEX_IMPORT LIB_IMPORT
#endif
/*!