cmake: Use official CMake config for QCA
[quassel.git] / CMakeLists.txt
index aa835a5..c43ba1a 100644 (file)
@@ -6,6 +6,8 @@
 # General setup
 #####################################################################
 
+cmake_minimum_required(VERSION 3.5)
+
 # Versions
 set(QUASSEL_MAJOR  0)
 set(QUASSEL_MINOR 13)
@@ -144,12 +146,6 @@ option(WITH_LDAP "Enable LDAP authentication support if present on system" ON)
 # Setup CMake
 #####################################################################
 
-if (WITH_KDE)
-    cmake_minimum_required(VERSION 2.8.12)
-else()
-    cmake_minimum_required(VERSION 2.8.9)
-endif()
-
 # Setting COMPILE_DEFINITIONS_<CONFIG> is deprecated since CMake 3.0 in favor of generator expressions.
 # These have existed since CMake 2.8.10; until we depend on that, we have to explicitly enable the old policy.
 if (POLICY CMP0043)
@@ -349,8 +345,8 @@ if (BUILD_CORE)
         DESCRIPTION "the database support module for Qt5"
     )
 
-    find_package(QCA2-QT5)
-    set_package_properties(QCA2-QT5 PROPERTIES TYPE RECOMMENDED
+    find_package(Qca-qt5 2.0)
+    set_package_properties(Qca-qt5 PROPERTIES TYPE RECOMMENDED
         URL "https://projects.kde.org/projects/kdesupport/qca"
         DESCRIPTION "Qt Cryptographic Architecture"
         PURPOSE "Required for encryption support"
@@ -393,10 +389,10 @@ set_package_properties(ZLIB PROPERTIES TYPE REQUIRED
 )
 
 if (NOT WIN32)
-    # Execinfo is needed for generating backtraces
-    find_package(ExecInfo QUIET)
-    set_package_properties(ExecInfo PROPERTIES TYPE OPTIONAL
-        DESCRIPTION "a library for inspecting backtraces"
+    # Needed for generating backtraces
+    find_package(Backtrace QUIET)
+    set_package_properties(Backtrace PROPERTIES TYPE RECOMMENDED
+        DESCRIPTION "a header (and possibly library) for inspecting backtraces"
         PURPOSE "Used for generating backtraces in case of a crash"
     )
 endif()