qt_internal_add_test(tst_application SOURCES ../error-checking.h tst_application.cpp DEFINES AM_TESTDATA_DIR="${CMAKE_CURRENT_BINARY_DIR}/../../data/" LIBRARIES Qt::Network Qt::AppManApplicationPrivate Qt::AppManCommonPrivate Qt::AppManManagerPrivate ) qt_internal_add_resource(tst_application "application_testdata" PREFIX "/" FILES "info.yaml" ) qt_internal_extend_target(tst_application CONDITION TARGET Qt::DBus LIBRARIES Qt::DBus )