Set and make use of RELEASE_SERVICE_VERSION variables

GIT_SILENT
parent aec19bbf
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
project(kshisen)
# 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 KSHISEN_BASE_VERSION once new features are added
set(KSHISEN_BASE_VERSION "1.10")
set(KSHISEN_VERSION "${KSHISEN_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
project(kshisen VERSION ${KSHISEN_VERSION})
set (QT_MIN_VERSION "5.10.0")
set (KF5_MIN_VERSION "5.55.0")
......@@ -37,7 +47,7 @@ include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(ECMQtDeclareLoggingCategory)
include(ECMSetupVersion)
find_package(KF5KMahjongglib REQUIRED)
find_package(KF5KDEGames 4.9.0 REQUIRED)
......
......@@ -6,6 +6,11 @@ set(kshisen_SRCS
possiblemove.cpp
)
ecm_setup_version(${KSHISEN_VERSION}
VARIABLE_PREFIX KSHISEN
VERSION_HEADER kshisen_version.h
)
ecm_qt_declare_logging_category(kshisen_SRCS HEADER debug.h IDENTIFIER KSHISEN_General CATEGORY_NAME kshisen)
ki18n_wrap_ui(kshisen_SRCS settings.ui)
......
......@@ -35,6 +35,7 @@
// KShisen
#include "app.h"
#include "debug.h"
#include "kshisen_version.h"
int main(int argc, char ** argv)
{
......@@ -50,7 +51,8 @@ int main(int argc, char ** argv)
KLocalizedString::setApplicationDomain("kshisen");
KAboutData aboutData(QStringLiteral("kshisen"), i18n("Shisen-Sho"), QStringLiteral("1.10+ #25"),
KAboutData aboutData(QStringLiteral("kshisen"), i18n("Shisen-Sho"),
QStringLiteral(KSHISEN_VERSION_STRING),
i18n("A game similar to Mahjongg"),
KAboutLicense::GPL,
i18n("Copyright 1997 Mario Weilguni"));
......
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