1if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "Linux")
2
3  set(LLVM_LINK_COMPONENTS
4    Support
5    )
6
7  add_clang_unittest(DirectoryWatcherTests
8    DirectoryWatcherTest.cpp
9    )
10
11  target_link_libraries(DirectoryWatcherTests
12    PRIVATE
13    LLVMTestingSupport
14    clangDirectoryWatcher
15    clangBasic
16    )
17
18endif()
19