Move find_package to top level CMakeLists.txt.

This commit is contained in:
Andrius Štikonas 2020-10-13 00:09:44 +01:00
parent cf5ff51832
commit d3ebabb6cb
3 changed files with 2 additions and 8 deletions

View File

@ -16,7 +16,7 @@ set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
set(QT_MIN_VERSION "5.10.0")
set(KF5_MIN_VERSION "5.56")
set(BLKID_MIN_VERSION "2.33.2")
# Qca-qt5 (tested with botan and ossl backends)
# PolkitQt5-1
# Runtime
# smartmontools 7.0
@ -62,7 +62,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
WidgetsAddons
)
find_package(Qca-qt5 REQUIRED)
find_package(PolkitQt5-1 REQUIRED)
# use sane compile flags
add_definitions(

View File

@ -33,7 +33,6 @@ target_link_libraries( kpmcore PUBLIC
${BLKID_LIBRARIES}
Qt5::DBus
Qt5::Gui
qca-qt5
KF5::I18n
KF5::CoreAddons
KF5::WidgetsAddons

View File

@ -23,9 +23,6 @@ qt5_generate_dbus_interface(
OPTIONS -a
)
find_package(PolkitQt5-1 REQUIRED)
qt5_add_dbus_interface(HelperInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${helper_interface_xml} externalcommandhelper_interface)
set(UTIL_SRC
@ -53,10 +50,8 @@ add_executable(kpmcore_externalcommand
)
target_link_libraries(kpmcore_externalcommand
qca-qt5
Qt5::Core
Qt5::DBus
KF5::AuthCore
KF5::I18n
PolkitQt5-1::Core
)