llvm-project/clang-tools-extra/unittests/clangd/CMakeLists.txt

56 lines
1005 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
ClangdUnitTests.cpp
CodeCompleteTests.cpp
CodeCompletionStringsTests.cpp
ContextTests.cpp
DexIndexTests.cpp
DraftStoreTests.cpp
FileDistanceTests.cpp
FileIndexTests.cpp
FindSymbolsTests.cpp
FuzzyMatchTests.cpp
GlobalCompilationDatabaseTests.cpp
HeadersTests.cpp
IndexTests.cpp
QualityTests.cpp
SourceCodeTests.cpp
SymbolCollectorTests.cpp
SyncAPI.cpp
TUSchedulerTests.cpp
TestFS.cpp
TestTU.cpp
ThreadingTests.cpp
TraceTests.cpp
URITests.cpp
XRefsTests.cpp
)
target_link_libraries(ClangdTests
PRIVATE
clangAST
clangBasic
clangDaemon
clangFormat
clangFrontend
clangIndex
clangLex
clangSema
clangTooling
clangToolingCore
clangToolingInclusions
LLVMSupport
LLVMTestingSupport
)