Changeset View
Changeset View
Standalone View
Standalone View
clang-tools-extra/clangd/test/CMakeLists.txt
# Set CLANG_TOOLS_DIR to buildtree/bin, or buildtree/%(build_mode)s/bin if the | # Set CLANG_TOOLS_DIR to buildtree/bin, or buildtree/%(build_mode)s/bin if the | ||||
# location is dynamic. The latter must be interpolated by lit configs. | # location is dynamic. The latter must be interpolated by lit configs. | ||||
# FIXME: this is duplicated in many places. | # FIXME: this is duplicated in many places. | ||||
if (CMAKE_CFG_INTDIR STREQUAL ".") | if (CMAKE_CFG_INTDIR STREQUAL ".") | ||||
set(LLVM_BUILD_MODE ".") | set(LLVM_BUILD_MODE ".") | ||||
else () | else () | ||||
set(LLVM_BUILD_MODE "%(build_mode)s") | set(LLVM_BUILD_MODE "%(build_mode)s") | ||||
endif () | endif () | ||||
string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} CLANG_TOOLS_DIR ${LLVM_RUNTIME_OUTPUT_INTDIR}) | string(REPLACE ${CMAKE_CFG_INTDIR} ${LLVM_BUILD_MODE} CLANG_TOOLS_DIR ${LLVM_RUNTIME_OUTPUT_INTDIR}) | ||||
set(CLANGD_TEST_DEPS | set(CLANGD_TEST_DEPS | ||||
clangd | clangd | ||||
ClangdTests | ClangdTests | ||||
# No tests for these, but we should still make sure they build. | |||||
clangd-indexer | clangd-indexer | ||||
# No tests for it, but we should still make sure they build. | |||||
dexp | dexp | ||||
) | ) | ||||
if(CLANGD_BUILD_XPC) | if(CLANGD_BUILD_XPC) | ||||
list(APPEND CLANGD_TEST_DEPS clangd-xpc-test-client) | list(APPEND CLANGD_TEST_DEPS clangd-xpc-test-client) | ||||
list(APPEND CLANGD_TEST_DEPS ClangdXpcUnitTests) | list(APPEND CLANGD_TEST_DEPS ClangdXpcUnitTests) | ||||
endif() | endif() | ||||
Show All 23 Lines |