Set and make use of RELEASE_SERVICE_VERSION variables

GIT_SILENT
parent 33c79b95
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
project(ksnakeduel)
# Release Service version, managed by release script
set (RELEASE_SERVICE_VERSION_MAJOR "20")
set (RELEASE_SERVICE_VERSION_MINOR "11")
set (RELEASE_SERVICE_VERSION_MICRO "70")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
# Bump KSNAKEDUEL_BASE_VERSION once new features are added
set(KSNAKEDUEL_BASE_VERSION "2.1")
set(KSNAKEDUEL_VERSION "${KSNAKEDUEL_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
project(ksnakeduel VERSION ${KSNAKEDUEL_VERSION})
set (QT_MIN_VERSION "5.10.0")
set (KF5_MIN_VERSION "5.57.0")
......@@ -32,6 +43,8 @@ include(KDEInstallDirs)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMQtDeclareLoggingCategory)
include(ECMSetupVersion)
if (${KF5Config_VERSION} STRGREATER "5.56.0")
add_definitions(-DQT_NO_FOREACH)
MESSAGE(STATUS "compile without foreach")
......@@ -45,6 +58,11 @@ endif()
########### next target ###############
ecm_setup_version(${KSNAKEDUEL_VERSION}
VARIABLE_PREFIX KSNAKEDUEL
VERSION_HEADER ksnakeduel_version.h
)
set(ksnakeduel_SRCS
renderer.cpp
object.cpp
......
......@@ -34,7 +34,7 @@
#include "ktron.h"
#include "renderer.h"
#include "settings.h"
#include "version.h"
#include "ksnakeduel_version.h"
static const char description[] = I18N_NOOP("A race in hyperspace");
static const char notice[] = I18N_NOOP("(c) 1998-2000, Matthias Kiefer\n"
......@@ -59,7 +59,10 @@ int main(int argc, char* argv[])
migrate.migrate();
KAboutData aboutData( QStringLiteral("ksnakeduel"), i18n("KSnakeDuel"),
QStringLiteral(KTRON_VERSION), i18n(description), KAboutLicense::GPL, i18n(notice));
QStringLiteral(KSNAKEDUEL_VERSION_STRING),
i18n(description),
KAboutLicense::GPL,
i18n(notice));
aboutData.addAuthor(i18n("Matthias Kiefer"), i18n("Original author"), QStringLiteral("matthias.kiefer@gmx.de"));
aboutData.addAuthor(i18n("Benjamin Meyer"), i18n("Various improvements"), QStringLiteral("ben+ktron@meyerhome.net"));
aboutData.addAuthor(i18n("Stas Verberkt"), i18n("KDE 4 Port, interface revision and KSnake mode"), QStringLiteral("legolas@legolasweb.nl"));
......
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