Commit fc1e8b39 authored by Kukuh Syafaat's avatar Kukuh Syafaat Committed by Albert Astals Cid
Browse files

Make version follow release service versioning

parent 21b2b4d0
project(kigo)
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 "70")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
# Bump KIGO_BASE_VERSION once new features are added
set(KIGO_BASE_VERSION "0.6")
set(KIGO_VERSION "${KIGO_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
project(kigo VERSION ${KIGO_VERSION})
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.57.0")
......@@ -31,6 +42,7 @@ include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMQtDeclareLoggingCategory)
include(ECMSetupVersion)
add_definitions(
-DQT_USE_FAST_CONCATENATION
-DQT_USE_FAST_OPERATOR_PLUS
......@@ -41,6 +53,10 @@ add_definitions(
-DQT_USE_QSTRINGBUILDER
)
ecm_setup_version(${KIGO_VERSION}
VARIABLE_PREFIX KIGO
VERSION_HEADER kigo_version.h
)
add_subdirectory(src)
add_subdirectory(data)
......
......@@ -20,6 +20,8 @@
#include "gui/mainwindow.h"
#include "../kigo_version.h"
#include <KAboutData>
#include <KCrash>
#include <Kdelibs4ConfigMigrator>
......@@ -53,7 +55,7 @@ int main(int argc, char *argv[])
KLocalizedString::setApplicationDomain("kigo");
KAboutData aboutData(QStringLiteral("kigo"), i18n("Kigo"), QStringLiteral("0.6.0"),
KAboutData aboutData(QStringLiteral("kigo"), i18n("Kigo"), QStringLiteral(KIGO_VERSION_STRING),
i18n("KDE Go Board Game"), KAboutLicense::GPL_V2,
i18n("Copyright (c) 2008-2010 Sascha Peilicke"));
aboutData.addAuthor(i18n("Sascha Peilicke (saschpe)"), i18n("Original author"),
......
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