add_executable(local-provider_test local-provider_test.cpp)

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

target_link_libraries(local-provider_test PRIVATE
    local-provider-lib
    lomiri-storage-framework-provider
    lomiri-storage-framework-qt-client-v2
    Qt${QT_VERSION_MAJOR}::Test
    ${Boost_LIBRARIES}
    PkgConfig::GLIB_DEPS
    PkgConfig::GIO_DEPS
    testutils
    GTest::gtest
)
gtest_discover_tests(local-provider_test)

set(UNIT_TEST_TARGETS ${UNIT_TEST_TARGETS} PARENT_SCOPE)
