Use include path for libcrashreporter-qt instead of lengthy relative include

This commit is contained in:
Dominik Schmidt 2014-08-28 11:11:42 +02:00
parent 34042028b3
commit 439bf7641e
4 changed files with 7 additions and 6 deletions

View file

@ -19,10 +19,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CrashReporterConfig.h.in
${CMAKE_CURRENT_BINARY_DIR}/CrashReporterConfig.h) ${CMAKE_CURRENT_BINARY_DIR}/CrashReporterConfig.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR}
# ../../libtomahawk "../3rdparty/libcrashreporter-qt/src/"
# ../../thirdparty/libcrashreporter-qt/src )
#)
add_executable( owncloud_crash_reporter WIN32 add_executable( owncloud_crash_reporter WIN32
${crashreporter_SOURCES} ${crashreporter_SOURCES}

View file

@ -12,10 +12,11 @@
* for more details. * for more details.
*/ */
#include "../3rdparty/libcrashreporter-qt/src/libcrashreporter-gui/CrashReporter.h"
#include "CrashReporterConfig.h" #include "CrashReporterConfig.h"
#include <libcrashreporter-gui/CrashReporter.h>
#include <QApplication> #include <QApplication>
#include <QDebug> #include <QDebug>

View file

@ -229,6 +229,7 @@ target_link_libraries( ${APPLICATION_EXECUTABLE} ${OS_SPECIFIC_LINK_LIBRARIES} )
if(WITH_CRASHREPORTER) if(WITH_CRASHREPORTER)
target_link_libraries( ${APPLICATION_EXECUTABLE} crashreporter-handler) target_link_libraries( ${APPLICATION_EXECUTABLE} crashreporter-handler)
include_directories( "../3rdparty/libcrashreporter-qt/src/" )
if(UNIX AND NOT MAC) if(UNIX AND NOT MAC)
find_package(Threads REQUIRED) find_package(Threads REQUIRED)

View file

@ -29,7 +29,7 @@
#include "updater/updater.h" #include "updater/updater.h"
#ifdef WITH_CRASHREPORTER #ifdef WITH_CRASHREPORTER
#include "../3rdparty/libcrashreporter-qt/src/libcrashreporter-handler/Handler.h" #include <libcrashreporter-handler/Handler.h>
#endif #endif
#include <QTimer> #include <QTimer>