Commit ba4207b5 authored by Rolf Eike Beer's avatar Rolf Eike Beer

define version number in CMakeLists.txt for easier maintenance

parent 745f1538
cmake_minimum_required(VERSION 3.5)
project(kteatime)
project(kteatime VERSION 1.3.0)
set(QT_MIN_VERSION "5.9.0")
set(KF5_MIN_VERSION "5.46.0")
......
......@@ -2,6 +2,8 @@ add_definitions(-DTRANSLATION_DOMAIN=\"kteatime\")
set(kteatime_SRCS settings.cpp timeedit.cpp toplevel.cpp tealistmodel.cpp tea.cpp main.cpp )
set_property(SOURCE main.cpp APPEND PROPERTY COMPILE_DEFINITIONS "KTEATIME_VERSION=\"${kteatime_VERSION}\"")
ki18n_wrap_ui(kteatime_SRCS settings.ui timeedit.ui)
add_executable(kteatime ${kteatime_SRCS})
......
......@@ -36,7 +36,7 @@ int main (int argc, char *argv[])
/**
* construct about data for KTeaTime
*/
KAboutData aboutData( QStringLiteral("kteatime"), i18n("KTeaTime"), QStringLiteral("1.3.0"),
KAboutData aboutData( QStringLiteral("kteatime"), i18n("KTeaTime"), QStringLiteral(KTEATIME_VERSION),
i18n( "KDE utility for making a fine cup of tea." ),
KAboutLicense::GPL,
i18n( "© 1998-1999, Matthias Hölzer-Klüpfel\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