################### tests ########################

########### next test ###############

if ("x$ENV{LIMA_DISABLE_FSW_TESTING}" STREQUAL "x")
message(STATUS "LIMA_DISABLE_FSW_TESTING is NOT set: build tests for LimaFileSystemWatcher")

SET(LimaFileSystemWatcherTest0_SRCS
  LimaFileSystemWatcherTest.cpp
)

add_executable(LimaFileSystemWatcherTest0
  ${LimaFileSystemWatcherTest0_SRCS}
  ${LimaFileSystemWatcherTest0_MOC_OUTFILES})

target_link_libraries(LimaFileSystemWatcherTest0
  lima-common-factory
  lima-common-tools
  Qt5::Test
)

add_test(NAME LimaFileSystemWatcherTest0 COMMAND LimaFileSystemWatcherTest0)
set_tests_properties(LimaFileSystemWatcherTest0 PROPERTIES ENVIRONMENT LIMA_CONF=${CMAKE_SOURCE_DIR}/conf)

else()
message(STATUS "LIMA_DISABLE_FSW_TESTING is set: do NOT build tests for LimaFileSystemWatcher")
endif()

