Commit 5803f10e authored by Andreas Sturmlechner's avatar Andreas Sturmlechner

Initialise KCrash

REVIEW: 126860
parent e3bcbba1
......@@ -2,12 +2,13 @@ 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")
find_package(ECM 1.7.0 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)
find_package(KF5 REQUIRED COMPONENTS
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
CoreAddons
Config
Crash
......
......@@ -21,6 +21,7 @@
#include "gui/mainwindow.h"
#include <KAboutData>
#include <KCrash>
#include <Kdelibs4ConfigMigrator>
#include <QApplication>
......@@ -64,6 +65,7 @@ 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)") ) );
......
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