Commit dd8a6237 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Set and make use of RELEASE_SERVICE_VERSION variables

NO_CHANGELOG
parent c946cb80
project(granatier)
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
# Release Service version, managed by release script
set (RELEASE_SERVICE_VERSION_MAJOR "20")
set (RELEASE_SERVICE_VERSION_MINOR "11")
set (RELEASE_SERVICE_VERSION_MICRO "80")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
# Bump GRANATIER_BASE_VERSION once new features are added
set(GRANATIER_BASE_VERSION "1.4")
set(GRANATIER_VERSION "${GRANATIER_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
project(granatier VERSION ${GRANATIER_VERSION})
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.30.0")
......@@ -31,6 +43,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMAddAppIcon)
include(ECMQtDeclareLoggingCategory)
include(ECMSetupVersion)
if (${KF5Config_VERSION} STRGREATER "5.56.0")
add_definitions(-DQT_NO_FOREACH)
......
ecm_setup_version(${GRANATIER_VERSION}
VARIABLE_PREFIX GRANATIER
VERSION_HEADER granatier_version.h
)
set(granatierSources
config/arenaselector.cpp
config/arenasettings.cpp
......
......@@ -18,6 +18,8 @@
#include "mainwindow.h"
#include "granatier_version.h"
#include <KAboutData>
#include <KCrash>
......@@ -78,7 +80,8 @@ int main(int argc, char** argv)
KLocalizedString::setApplicationDomain("granatier");
// About Granatier
KAboutData about(QStringLiteral("granatier"), i18n("Granatier"), QStringLiteral("1.4.0"),
KAboutData about(QStringLiteral("granatier"), i18n("Granatier"),
QStringLiteral(GRANATIER_VERSION_STRING),
i18n("Granatier is a Bomberman Clone!"),
KAboutLicense::GPL, i18n("Copyright (c) 2009-2015 The Granatier Team!"));
about.addAuthor(i18n("Mathias Kraus"), i18n("Maintainer"), QStringLiteral("k.hias@gmx.de"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment