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)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
# ../../libtomahawk
# ../../thirdparty/libcrashreporter-qt/src
#)
include_directories(${CMAKE_CURRENT_BINARY_DIR}
"../3rdparty/libcrashreporter-qt/src/"
)
add_executable( owncloud_crash_reporter WIN32
${crashreporter_SOURCES}

View file

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

View file

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

View file

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