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

Set and make use of RELEASE_SERVICE_VERSION variables

GIT_SILENT
parent 808ea316
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(kmahjongg)
# 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 KMAHJONGG_BASE_VERSION once new features are added
set(KMAHJONGG_BASE_VERSION "0.9")
set(KMAHJONGG_VERSION "${KMAHJONGG_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
project(kmahjongg VERSION ${KMAHJONGG_VERSION})
set(QT_MIN_VERSION "5.10.0")
set(KF5_MIN_VERSION "5.55.0")
......@@ -33,7 +43,7 @@ include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(ECMQtDeclareLoggingCategory)
include(ECMSetupVersion)
find_package(KF5KMahjongglib REQUIRED)
find_package(KF5KDEGames 4.9.0 REQUIRED)
......
......@@ -18,6 +18,11 @@ set(kmahjongg_SRCS
movelistanimation.cpp
)
ecm_setup_version(${KMAHJONGG_VERSION}
VARIABLE_PREFIX KMAHJONGG
VERSION_HEADER kmahjongg_version.h
)
ki18n_wrap_ui(kmahjongg_SRCS settings.ui gametype.ui)
ecm_qt_declare_logging_category(kmahjongg_SRCS HEADER kmahjongg_debug.h IDENTIFIER KMAHJONGG_LOG CATEGORY_NAME log_kmahjongg)
......
......@@ -25,7 +25,7 @@
// KMahjongg
#include "kmahjongg.h"
#include "version.h"
#include "kmahjongg_version.h"
int main(int argc, char ** argv)
{
......@@ -35,7 +35,7 @@ int main(int argc, char ** argv)
KLocalizedString::setApplicationDomain("kmahjongg");
KAboutData aboutData(QStringLiteral("kmahjongg"), i18n("KMahjongg"),
QStringLiteral(KMAHJONGG_VERSION),
QStringLiteral(KMAHJONGG_VERSION_STRING),
i18n("Mahjongg Solitaire by KDE"),
KAboutLicense::GPL,
i18n("(c) 1997, Mathias Mueller\n(c) 2006, Mauricio Piacentini\n(c) 2011, Christian Krippendorf"));
......
/*
Copyright (C) 1997 Mathias Mueller <in5y158@public.uni-hamburg.de>
Kmahjongg is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KMAHJONGG_VERSION
#define KMAHJONGG_VERSION "0.9"
#endif // KMAHJONGG_VERSION
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