Commit 5ad53b84 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Follow KDE_APPLICATIONS_VERSION

Last version increase was 8 years ago and there's been more than 200
commits since, that proves we need auto-updating version by the release
management gods :)
parent bba39b0c
project(kbounce)
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
# KDE Application Version, managed by release script
set(KDE_APPLICATIONS_VERSION_MAJOR "19")
set(KDE_APPLICATIONS_VERSION_MINOR "11")
set(KDE_APPLICATIONS_VERSION_MICRO "70")
set(KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
project(kbounce VERSION ${KDE_APPLICATIONS_VERSION})
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.30.0")
......@@ -30,6 +37,7 @@ include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMAddAppIcon)
include(ECMSetupVersion)
add_definitions(
-DQT_USE_FAST_CONCATENATION
......@@ -60,6 +68,8 @@ set(kbounce_SRCS
backgroundselector.cpp
)
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX KBOUNCE VERSION_HEADER kbounce_version.h)
kconfig_add_kcfg_files(kbounce_SRCS settings.kcfgc)
ki18n_wrap_ui(kbounce_SRCS backgroundselector.ui )
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/pics/*-apps-kbounce.png")
......
......@@ -28,6 +28,7 @@
#include <QCommandLineParser>
#include "debug.h"
#include "kbounce_version.h"
Q_LOGGING_CATEGORY(KBOUNCE_LOG, "log_kbounce")
......@@ -43,7 +44,7 @@ int main(int argc, char **argv)
migrate.migrate();
KLocalizedString::setApplicationDomain("kbounce");
KAboutData aboutData(QStringLiteral("kbounce"), i18n("KBounce"),
QStringLiteral("0.11"), i18n(description),
QStringLiteral(KBOUNCE_VERSION_STRING), i18n(description),
KAboutLicense::GPL, i18n(copyleft), QString(),
QStringLiteral("http://games.kde.org/kbounce"));
......
Supports Markdown
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