add_executable(remote-client_test remote-client_test.cpp MockProvider.cpp)
set_target_properties(remote-client_test PROPERTIES AUTOMOC TRUE)

add_definitions(-DTEST_DIR="${CMAKE_CURRENT_BINARY_DIR}" -DBOOST_THREAD_VERSION=4)

target_link_libraries(remote-client_test PRIVATE
    lomiri-storage-framework-provider
    lomiri-storage-framework-qt-client-v2
    Qt${QT_VERSION_MAJOR}::Network
    Qt${QT_VERSION_MAJOR}::Test
    ${Boost_LIBRARIES}
    PkgConfig::GLIB_DEPS
    testutils
    GTest::gtest
)
add_dependencies(remote-client_test qt-client-all-headers lomiri-storage-framework-registry)
gtest_discover_tests(remote-client_test)

set(UNIT_TEST_TARGETS ${UNIT_TEST_TARGETS} PARENT_SCOPE)
