include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/online-accounts-daemon/lib ${LomiriOnlineAccountsQt_SOURCE_DIR} ${LomiriOnlineAccountsQt_SOURCE_DIR}/.. ) set(TEST tst_authentication_data) set(SOURCES ${LomiriOnlineAccountsQt_SOURCE_DIR}/authentication_data.cpp tst_authentication_data.cpp ) add_executable(${TEST} ${SOURCES}) target_link_libraries(${TEST} Qt${QT_VERSION}::Core Qt${QT_VERSION}::DBus Qt${QT_VERSION}::Test ) add_test(${TEST} ${CMAKE_CURRENT_BINARY_DIR}/${TEST})