summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-24 07:27:11 +0200
committerLuigi Toscano <[email protected]>2017-11-25 22:38:45 +0100
commite797125a7e8bcefea305285f8b5f85104144746d (patch)
tree82a8b4edeba10b696becbdce813666e5c61587dd
parent13ae485c5b75f578006efed73a11081e709c7b24 (diff)
It's already done in kaboutdata
-rw-r--r--CMakeLists.txt6
-rw-r--r--main.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4417cbf..0221b84 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,10 +1,10 @@
project(kolf)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
-set (QT_MIN_VERSION "5.3.0")
-set (KF5_MIN_VERSION "5.15.0")
+set (QT_MIN_VERSION "5.7.0")
+set (KF5_MIN_VERSION "5.30.0")
-find_package(ECM 1.7.0 REQUIRED CONFIG)
+find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets )
diff --git a/main.cpp b/main.cpp
index cd02c93..7c6e220 100644
--- a/main.cpp
+++ b/main.cpp
@@ -64,8 +64,6 @@ int main(int argc, char **argv)
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
KCrash::initialize();
- parser.addVersionOption();
- parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringList() << QLatin1String("+file"), i18n("File")));
parser.addOption(QCommandLineOption(QStringList() << QLatin1String("course-info"), i18n("Print course information and exit")));