2017-09-10 15:17:07 +02:00
|
|
|
set(autotests_EXTRA_LIBS )
|
|
|
|
|
2017-09-26 15:19:55 +02:00
|
|
|
if (KF5Wallet_FOUND)
|
2017-09-10 15:17:07 +02:00
|
|
|
add_definitions(-DHAVE_KDE_PASSWORDS_PLUGIN)
|
2017-09-26 15:19:55 +02:00
|
|
|
add_library(KWalletPasswordsPluginLib UNKNOWN IMPORTED)
|
|
|
|
set_property(TARGET KWalletPasswordsPluginLib PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/bin/plugins/KWalletPasswords.so)
|
2017-09-26 15:54:25 +02:00
|
|
|
add_dependencies(KWalletPasswordsPluginLib KWalletPasswords)
|
2017-09-26 15:19:55 +02:00
|
|
|
set(autotests_EXTRA_LIBS ${autotests_EXTRA_LIBS} KWalletPasswordsPluginLib)
|
2017-09-10 15:17:07 +02:00
|
|
|
endif()
|
|
|
|
|
2017-09-26 15:19:55 +02:00
|
|
|
if (GNOME_KEYRING_FOUND)
|
2017-09-10 15:17:07 +02:00
|
|
|
add_definitions(-DHAVE_GNOME_PASSWORDS_PLUGIN)
|
2017-09-26 15:19:55 +02:00
|
|
|
add_library(GnomeKeyringPasswordsPluginLib UNKNOWN IMPORTED)
|
|
|
|
set_property(TARGET GnomeKeyringPasswordsPluginLib PROPERTY IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/bin/plugins/GnomeKeyringPasswords.so)
|
2017-09-26 15:54:25 +02:00
|
|
|
add_dependencies(GnomeKeyringPasswordsPluginLib GnomeKeyringPasswords)
|
2017-09-26 15:19:55 +02:00
|
|
|
set(autotests_EXTRA_LIBS ${autotests_EXTRA_LIBS} GnomeKeyringPasswordsPluginLib)
|
2017-09-10 15:17:07 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
set( autotests_SRCS
|
|
|
|
qztoolstest.cpp
|
|
|
|
main.cpp
|
|
|
|
cookiestest.cpp
|
|
|
|
adblocktest.cpp
|
|
|
|
updatertest.cpp
|
|
|
|
passwordbackendtest.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(autotests ${autotests_SRCS})
|
2017-09-26 15:19:55 +02:00
|
|
|
target_link_libraries(autotests FalkonPrivate Qt5::Test ${autotests_EXTRA_LIBS})
|