Commit 897ee2cb authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Follow KDE_APPLICATIONS_VERSION

Last version increase was 4 years ago and there's been more than 140
commits since, that proves we need auto-updating version by the release
management gods :)
parent bde33893
project(ksirk)
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 "07")
set(KDE_APPLICATIONS_VERSION_MICRO "70")
set(KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
project(ksirk VERSION ${KDE_APPLICATIONS_VERSION})
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.30.0")
......@@ -29,6 +37,7 @@ find_package(Phonon4Qt5 REQUIRED)
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
......@@ -47,6 +56,8 @@ kde_enable_exceptions()
remove_definitions(-DQT_NO_STL)
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX KSIRK VERSION_HEADER ksirk_version.h)
add_subdirectory(ksirk)
add_subdirectory(ksirkskineditor)
add_subdirectory(doc)
......
......@@ -27,6 +27,8 @@ This is the standard main function of a KDE application simplified for KsirK
#include <QApplication>
#include <QCommandLineParser>
#include "../ksirk_version.h"
int main(int argc, char *argv[])
{
qCDebug(KSIRK_LOG) << "Hello KsirK";
......@@ -36,7 +38,7 @@ int main(int argc, char *argv[])
KAboutData aboutData(QStringLiteral("ksirk"),
i18n("KsirK"),
QStringLiteral("5.0.0"),
QStringLiteral(KSIRK_VERSION_STRING),
i18n("KsirK - World Domination Strategy Game"),
KAboutLicense::GPL,
i18n("(c) 2002-2015, Gaël de Chalendar\n"),
......
......@@ -31,6 +31,8 @@ This is the standard main function of a KDE application
#include <KLocalizedString>
#include "ksirkskineditor_debug.h"
#include "../ksirk_version.h"
#include <KToolBar>
#include <QApplication>
#include <QCommandLineParser>
......@@ -48,7 +50,7 @@ int main(int argc, char *argv[])
KAboutData aboutData(
QStringLiteral("ksirkskineditor"),
i18n("KsirK Skin Editor"),
/*KDE_VERSION_STRING*/QStringLiteral("5.0.0"),
QStringLiteral(KSIRK_VERSION_STRING),
i18n(description),
KAboutLicense::GPL,
i18n("(c) 2008, Gaël de Chalendar\n"),
......
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