Commit a11b74f7 authored by Albert Astals Cid's avatar Albert Astals Cid

Follow KDE_APPLICATIONS_VERSION

Last version increase was 15 years ago and there's been more than 440
commits since, that proves we need auto-updating version by the release
management gods :)
parent 1ed0bf96
cmake_minimum_required (VERSION 3.0 FATAL_ERROR)
project(kmag)
# KDE Application Version, managed by release script
set(KDE_APPLICATIONS_VERSION_MAJOR "19")
set(KDE_APPLICATIONS_VERSION_MINOR "07")
set(KDE_APPLICATIONS_VERSION_MICRO "70")
set(KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
project(kmag VERSION ${KDE_APPLICATIONS_VERSION})
set(QT_MIN_VERSION "5.9.0")
set(KF5_MIN_VERSION "5.46.0")
......@@ -13,6 +19,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMInstallIcons)
include(FeatureSummary)
include(ECMSetupVersion)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Core
......@@ -51,6 +58,8 @@ add_subdirectory( doc )
add_subdirectory( pics )
########### next target ###############
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX KMAG VERSION_HEADER kmag_version.h)
set(kmag_SRCS
kmagzoomview.cpp
kmagselrect.cpp
......
......@@ -25,7 +25,7 @@
#include "kmag.h"
#include "version.h"
#include "kmag_version.h"
KmagApp *kmagapp;
......@@ -42,7 +42,7 @@ int main(int argc, char *argv[])
KLocalizedString::setApplicationDomain("kmag");
// about the application
KAboutData aboutData(QStringLiteral("kmag"), i18n("KMagnifier"), QStringLiteral(KMAG_VERSION),
KAboutData aboutData(QStringLiteral("kmag"), i18n("KMagnifier"), QStringLiteral(KMAG_VERSION_STRING),
i18n("Screen magnifier created by KDE"),
KAboutLicense::GPL,
i18n("Copyright 2001-2003 Sarang Lakare\nCopyright 2003-2004 Olaf Schmidt\nCopyright 2008 Matthew Woehlke"), QString(),
......
// KMag Version Information
//
#ifndef kmag_version_h
#define kmag_version_h
#define KMAG_VERSION "1.0"
#endif /*version_h*/
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