40 lines
685 B
CMake
40 lines
685 B
CMake
|
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
|
||
|
Annotations.cpp
|
||
|
ClangdTests.cpp
|
||
|
CodeCompleteTests.cpp
|
||
|
CodeCompletionStringsTests.cpp
|
||
|
ContextTests.cpp
|
||
|
FileIndexTests.cpp
|
||
|
FuzzyMatchTests.cpp
|
||
|
IndexTests.cpp
|
||
|
JSONExprTests.cpp
|
||
|
TestFS.cpp
|
||
|
TraceTests.cpp
|
||
|
SourceCodeTests.cpp
|
||
|
SymbolCollectorTests.cpp
|
||
|
XRefsTests.cpp
|
||
|
)
|
||
|
|
||
|
target_link_libraries(ClangdTests
|
||
|
PRIVATE
|
||
|
clangBasic
|
||
|
clangDaemon
|
||
|
clangFormat
|
||
|
clangFrontend
|
||
|
clangIndex
|
||
|
clangSema
|
||
|
clangTooling
|
||
|
clangToolingCore
|
||
|
LLVMSupport
|
||
|
)
|