mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-21 05:14:40 -04:00
parent
791a749c2f
commit
65992ba6ae
7 changed files with 82 additions and 34 deletions
|
@ -85,13 +85,13 @@ endmacro(add_unit_test)
|
|||
|
||||
set(TEST_LIBRARIES
|
||||
keepassx_core
|
||||
${keepasshttp_LIB}
|
||||
Qt5::Core
|
||||
Qt5::Concurrent
|
||||
Qt5::Widgets
|
||||
Qt5::Test
|
||||
${GCRYPT_LIBRARIES}
|
||||
${ZLIB_LIBRARIES}
|
||||
${MHD_LIBRARIES}
|
||||
)
|
||||
|
||||
set(testsupport_SOURCES modeltest.cpp FailDevice.cpp)
|
||||
|
@ -143,9 +143,11 @@ add_unit_test(NAME testkeepass1reader SOURCES TestKeePass1Reader.cpp
|
|||
add_unit_test(NAME testwildcardmatcher SOURCES TestWildcardMatcher.cpp
|
||||
LIBS ${TEST_LIBRARIES})
|
||||
|
||||
add_unit_test(NAME testautotype SOURCES TestAutoType.cpp
|
||||
if(WITH_XC_AUTOTYPE)
|
||||
add_unit_test(NAME testautotype SOURCES TestAutoType.cpp
|
||||
LIBS ${TEST_LIBRARIES})
|
||||
set_target_properties(testautotype PROPERTIES ENABLE_EXPORTS ON)
|
||||
set_target_properties(testautotype PROPERTIES ENABLE_EXPORTS ON)
|
||||
endif()
|
||||
|
||||
add_unit_test(NAME testentry SOURCES TestEntry.cpp
|
||||
LIBS ${TEST_LIBRARIES})
|
||||
|
|
|
@ -5,4 +5,8 @@
|
|||
|
||||
#define KEEPASSX_TEST_DATA_DIR "${KEEPASSX_TEST_DATA_DIR}"
|
||||
|
||||
#cmakedefine WITH_XC_HTTP
|
||||
#cmakedefine WITH_XC_AUTOTYPE
|
||||
#cmakedefine WITH_XC_YUBIKEY
|
||||
|
||||
#endif // KEEPASSX_CONFIG_TESTS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue