diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e1e269..8054422 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ project(libcrashreporter-qt) -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.6) if(POLICY CMP0071) cmake_policy(SET CMP0071 NEW) @@ -16,6 +16,14 @@ endif() option(ENABLE_CRASH_REPORTER "Enable libcrashreporter-qt GUI component" ON) +if (NOT MSVC) + find_package(PkgConfig REQUIRED) + pkg_check_modules(BREAKPAD REQUIRED IMPORTED_TARGET breakpad breakpad-client) +else() + # with msvc we use an old fork + add_subdirectory(3rdparty/breakpad) +endif() + find_package(Qt5 COMPONENTS Core Network Widgets) add_definitions( -DQT_NO_FOREACH |