summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-23 06:57:51 +0200
committerMontel Laurent <[email protected]>2017-10-23 06:57:51 +0200
commit631332c2d125f922258e4058c1648679e3035b23 (patch)
tree1193c9d77c05b5a63acb672720450d18183b056f
parent4c82f060d5aa255e8b50406c9ee13b432af9d738 (diff)
It's already done in kaboutdata
-rw-r--r--CMakeLists.txt6
-rw-r--r--src/main.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9988049..c96d27d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,10 +1,10 @@
project(kigo)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
-set (QT_MIN_VERSION "5.4.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 Svg)
diff --git a/src/main.cpp b/src/main.cpp
index 4a9cf83..6fecceb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -68,8 +68,6 @@ int main(int argc, char *argv[])
QCommandLineParser parser;
KAboutData::setApplicationData(aboutData);
KCrash::initialize();
- parser.addVersionOption();
- parser.addHelpOption();
parser.addOption(QCommandLineOption(QStringList() << QStringLiteral("game"), i18nc("@info:shell", "Game to load (SGF file)"), i18nc("@info:shell", "gamefile")));
parser.addPositionalArgument(i18nc("@info:shell", "[gamefile]"), i18nc("@info:shell", "Game to load (SGF file)"));