From e64050821a1d2be86f013aec09c3f6f2efd9602a Mon Sep 17 00:00:00 2001
From: Teo Mrnjavac <teo@kde.org>
Date: Wed, 4 Nov 2015 16:44:27 +0100
Subject: [PATCH] And build it.

---
 CMakeLists.txt            | 7 +++++++
 thirdparty/CMakeLists.txt | 6 ++++++
 2 files changed, 13 insertions(+)
 create mode 100644 thirdparty/CMakeLists.txt

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 75ffe7ffa8..b42e0aa345 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,6 +56,12 @@ find_package( YamlCpp 0.5.1 REQUIRED )
 find_package( PolkitQt5-1 REQUIRED )
 
 option( WITH_PYTHON "Enable Python modules support." ON )
+option( WITH_CRASHREPORTER "Build with CrashReporter" ON )
+
+if( CMAKE_SYSTEM_PROCESSOR MATCHES "arm" OR NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libcrashreporter-qt/CMakeLists.txt" )
+    message( STATUS "Build of crashreporter disabled." )
+    set( WITH_CRASHREPORTER OFF )
+endif()
 
 macro_optional_find_package( PythonLibs 3.3 )
 macro_log_feature(
@@ -152,6 +158,7 @@ file( COPY CalamaresAddBrandingSubdirectory.cmake DESTINATION "${PROJECT_BINARY_
 
 set( CALAMARES_LIBRARIES calamares )
 
+add_subdirectory( thirdparty )
 add_subdirectory( src )
 
 macro_display_feature_log()
diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt
new file mode 100644
index 0000000000..b3401a9776
--- /dev/null
+++ b/thirdparty/CMakeLists.txt
@@ -0,0 +1,6 @@
+if( WITH_CRASHREPORTER )
+    macro( qt_wrap_ui )
+        qt5_wrap_ui( ${ARGN} )
+    endmacro()
+    add_subdirectory( libcrashreporter-qt )
+endif()
-- 
GitLab