Commit d1f2047f authored by Martin Koller's avatar Martin Koller
Browse files

Instead own version, use KDE Application Version, managed by release script

parent c3cfa919
......@@ -12,8 +12,9 @@ include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMInstallIcons)
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMSetupVersion)
include(FeatureSummary)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Core
......@@ -40,6 +41,20 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
# KDE Application Version, managed by release script
set(KDE_APPLICATIONS_VERSION_MAJOR "16")
set(KDE_APPLICATIONS_VERSION_MINOR "07")
set(KDE_APPLICATIONS_VERSION_MICRO "80")
set(KDE_APPLICATIONS_VERSION "${KDE_APPLICATIONS_VERSION_MAJOR}.${KDE_APPLICATIONS_VERSION_MINOR}.${KDE_APPLICATIONS_VERSION_MICRO}")
## Generate header with version number
ecm_setup_version(${KDE_APPLICATIONS_VERSION}
VARIABLE_PREFIX KOLOURPAINT
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kpVersion.h"
)
add_subdirectory( pics )
add_subdirectory( doc )
......@@ -297,10 +312,10 @@ add_subdirectory(lgpl)
#
ecm_add_app_icon(kolourpaint_SRCS ICONS
16-apps-kolourpaint.png
22-apps-kolourpaint.png
32-apps-kolourpaint.png
48-apps-kolourpaint.png
pics/app/16-apps-kolourpaint.png
pics/app/22-apps-kolourpaint.png
pics/app/32-apps-kolourpaint.png
pics/app/48-apps-kolourpaint.png
)
add_executable(kolourpaint ${kolourpaint_SRCS})
......
......@@ -27,8 +27,8 @@
#include <kaboutdata.h>
#include <kdeversion.h>
#include "kpVersion.h"
#include "mainWindow/kpMainWindow.h"
#include <kolourpaintlicense.h>
......@@ -42,7 +42,7 @@ int main(int argc, char *argv [])
(
"kolourpaint",
i18n("KolourPaint"),
"5.0", // kolourpaint version
QStringLiteral(KOLOURPAINT_VERSION_STRING),
i18n("Paint Program for KDE"),
KAboutLicense::Custom,
QString(), // copyright statement - see license instead
......
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