remove_definitions(-DQT_NO_CAST_FROM_ASCII) remove_definitions(-DQT_NO_CAST_TO_ASCII) include(ECMMarkAsTest) find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Test) macro(kwallet_executable_tests) foreach(_testname ${ARGN}) add_executable(${_testname} ${_testname}.cpp) ecm_mark_as_test(${_testname}) target_link_libraries(${_testname} Qt6::Test Qt6::Widgets KF6::Wallet) endforeach(_testname) endmacro() kwallet_executable_tests( kwallettest )