1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

CMake: Fix dependencies for building autotests with password backends

This commit is contained in:
David Rosca 2017-09-26 15:54:25 +02:00
parent f7a364b965
commit 37f05cca8e

View File

@ -4,6 +4,7 @@ if (KF5Wallet_FOUND)
add_definitions(-DHAVE_KDE_PASSWORDS_PLUGIN) add_definitions(-DHAVE_KDE_PASSWORDS_PLUGIN)
add_library(KWalletPasswordsPluginLib UNKNOWN IMPORTED) add_library(KWalletPasswordsPluginLib UNKNOWN IMPORTED)
set_property(TARGET KWalletPasswordsPluginLib PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/bin/plugins/KWalletPasswords.so) set_property(TARGET KWalletPasswordsPluginLib PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/bin/plugins/KWalletPasswords.so)
add_dependencies(KWalletPasswordsPluginLib KWalletPasswords)
set(autotests_EXTRA_LIBS ${autotests_EXTRA_LIBS} KWalletPasswordsPluginLib) set(autotests_EXTRA_LIBS ${autotests_EXTRA_LIBS} KWalletPasswordsPluginLib)
endif() endif()
@ -11,6 +12,7 @@ if (GNOME_KEYRING_FOUND)
add_definitions(-DHAVE_GNOME_PASSWORDS_PLUGIN) add_definitions(-DHAVE_GNOME_PASSWORDS_PLUGIN)
add_library(GnomeKeyringPasswordsPluginLib UNKNOWN IMPORTED) add_library(GnomeKeyringPasswordsPluginLib UNKNOWN IMPORTED)
set_property(TARGET GnomeKeyringPasswordsPluginLib PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/bin/plugins/GnomeKeyringPasswords.so) set_property(TARGET GnomeKeyringPasswordsPluginLib PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/bin/plugins/GnomeKeyringPasswords.so)
add_dependencies(GnomeKeyringPasswordsPluginLib GnomeKeyringPasswords)
set(autotests_EXTRA_LIBS ${autotests_EXTRA_LIBS} GnomeKeyringPasswordsPluginLib) set(autotests_EXTRA_LIBS ${autotests_EXTRA_LIBS} GnomeKeyringPasswordsPluginLib)
endif() endif()