set(LLVM_LINK_COMPONENTS
  support
  )

get_filename_component(CLANGD_SOURCE_DIR
  ${CMAKE_CURRENT_SOURCE_DIR}/../../clangd REALPATH)
include_directories(
  ${CLANGD_SOURCE_DIR}
  )

add_extra_unittest(ClangdTests
  ClangdTests.cpp
  CodeCompleteTests.cpp
  ContextTests.cpp
  FuzzyMatchTests.cpp
  JSONExprTests.cpp
  TestFS.cpp
  TraceTests.cpp
  SymbolCollectorTests.cpp
  )

target_link_libraries(ClangdTests
  PRIVATE
  clangBasic
  clangDaemon
  clangFormat
  clangFrontend
  clangSema
  clangTooling
  clangToolingCore
  LLVMSupport
  )

set(LLVM_LINK_COMPONENTS
  support
  )

get_filename_component(CLANGD_SOURCE_DIR
  ${CMAKE_CURRENT_SOURCE_DIR}/../../clangd REALPATH)
include_directories(
  ${CLANGD_SOURCE_DIR}
  )

add_extra_unittest(ClangdTests
  ClangdTests.cpp
  CodeCompleteTests.cpp
  ContextTests.cpp
  FuzzyMatchTests.cpp
  JSONExprTests.cpp
  TestFS.cpp
  TraceTests.cpp
  SymbolCollectorTests.cpp
  )

target_link_libraries(ClangdTests
  PRIVATE
  clangBasic
  clangDaemon
  clangFormat
  clangFrontend
  clangIndex
  clangSema
  clangTooling
  clangToolingCore
  LLVMSupport
  )

Fix the unitttest build error on buildbot.
[clangd] Fix the unitttest build error on buildbot.

git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@320678 91177308-0d34-0410-b5e6-96231b3b80d8
