summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Beltrame <[email protected]>2015-10-16 07:51:27 +0200
committerLuca Beltrame <[email protected]>2015-10-16 07:51:27 +0200
commitf6517d626df5fd0e70be4235ebe0603c78de4264 (patch)
treeb83172f1ff71e06aba5bf7091e0eaa497c1455b2
parentdb16a8bded19b54f71ffebf593f83141e98606f2 (diff)
Adapt CMakeLists.txt to work with newer QGpgme and Qca
Patch originally by Raymond Wooninck <[email protected]>.
-rw-r--r--CMakeLists.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3f458d..2c93564 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,15 +41,14 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_P
find_package(Sqlite QUIET)
set_package_properties(SQLITE_FOUND PROPERTIES DESCRIPTION "SQLite is a Binary-Database" TYPE RECOMMENDED PURPOSE "Needed for the SQLite-Backend of the KGet-History")
-find_package(Qca 2.1.0)
+find_package(Qca-qt5 2.1.0)
set_package_properties(Qca PROPERTIES DESCRIPTION "Support for encryption"
URL "http://delta.affinix.com/qca"
TYPE REQUIRED)
-find_package(KF5QGpgme)
find_package(KF5Gpgmepp)
-set_package_properties(KF5QGpgme_FOUND PROPERTIES DESCRIPTION "The QGpgME library" TYPE RECOMMENDED PURPOSE "QGpgME is required to have signature verifying support in KGet.")
+set_package_properties(KF5Gpgmepp_FOUND PROPERTIES DESCRIPTION "The GpgMEPP library" TYPE RECOMMENDED PURPOSE "GpgMEPP is required to have signature verifying support in KGet.")
find_package(KTorrent QUIET)
set_package_properties(LIBKTORRENT_FOUND PROPERTIES DESCRIPTION "Backend Library of KTorrent" TYPE RECOMMENDED PURPOSE "Needed to build KGet bittorrent support.")
@@ -71,17 +70,16 @@ if(CMAKE_BUILD_TYPE MATCHES debugfull)
add_definitions(-DDEBUG)
endif(CMAKE_BUILD_TYPE MATCHES debugfull)
-if (Qca_FOUND)
+if (Qca-qt5_FOUND)
add_definitions(-DHAVE_QCA2)
MESSAGE(STATUS "QCA found")
endif()
-if(KF5QGpgme_FOUND)
+if(KF5Gpgmepp_FOUND)
find_package(Boost REQUIRED)
add_definitions(-DHAVE_QGPGME)
include_directories(
${Boost_INCLUDE_DIRS}
- ${QGPGME_INCLUDE_DIR}
)
endif()
@@ -181,11 +179,11 @@ if (SQLITE_FOUND)
target_link_libraries(kgetcore ${QT_QTSQL_LIBRARY})
endif (SQLITE_FOUND)
-if (Qca_FOUND)
- target_link_libraries(kgetcore qca)
+if (Qca-qt5_FOUND)
+ target_link_libraries(kgetcore qca-qt5)
endif ()
-if (KF5QGpgme_FOUND)
+if (KF5Gpgmepp_FOUND)
target_link_libraries(kgetcore KF5::QGpgme KF5::Gpgmepp)
kde_enable_exceptions()
endif()