Commit 1f55fe65 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Compose RELEASE_SERVICE_VERSION into klickety version

Summary: instead of using that weird 2.1+ we add the release version to it

Reviewers: #kde_games

Subscribers: kde-games-devel

Differential Revision: https://phabricator.kde.org/D27756
parent 95c5d846
project(klickety)
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
set (RELEASE_SERVICE_VERSION_MAJOR "20")
set (RELEASE_SERVICE_VERSION_MINOR "03")
set (RELEASE_SERVICE_VERSION_MICRO "70")
set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
project(klickety VERSION "2.1.${RELEASE_SERVICE_COMPACT_VERSION}")
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.30.0")
......@@ -27,6 +33,7 @@ find_package(KF5KDEGames 4.9.0 REQUIRED)
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
......@@ -49,6 +56,8 @@ set(klickety_SRCS
piece.cpp
)
ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX KLICKETY VERSION_HEADER klickety_version.h)
ki18n_wrap_ui(klickety_SRCS bgselectorconfig.ui customgameconfig.ui gameconfig.ui)
kconfig_add_kcfg_files(klickety_SRCS settings.kcfgc)
......
......@@ -18,6 +18,7 @@
#include "mainwindow.h"
#include "settings.h"
#include "klickety_version.h"
#include <KAboutData>
#include <KCrash>
......@@ -45,7 +46,7 @@ int main( int argc, char* argv[] )
migrate.migrate();
qsrand( std::time( nullptr ) );
KAboutData aboutData( QStringLiteral( "klickety" ), i18n( "Klickety" ), QStringLiteral( "2.1+" ),
KAboutData aboutData( QStringLiteral( "klickety" ), i18n( "Klickety" ), QStringLiteral( KLICKETY_VERSION_STRING ),
i18n( "Klickety is an adaptation of the \"clickomania\" game" ),
KAboutLicense::GPL,
i18n( "(c) 2002-2005, Nicolas Hadacek\n(c) 2010, Ni Hui" ) );
......
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