Reid Kleckner e3c0565b74
Reapply "[cmake] Refactor clang unittest cmake" (#134195)
This reapplies 5ffd9bdb50b57 (#133545) with fixes.

The BUILD_SHARED_LIBS=ON build was fixed by adding missing LLVM
dependencies to the InterpTests binary in
unittests/AST/ByteCode/CMakeLists.txt .
2025-04-02 21:07:30 -07:00

22 lines
397 B
CMake

add_clang_unittest(ClangDriverTests
DistroTest.cpp
DXCModeTest.cpp
GCCVersionTest.cpp
ToolChainTest.cpp
ModuleCacheTest.cpp
MultilibBuilderTest.cpp
MultilibTest.cpp
SanitizerArgsTest.cpp
CLANG_LIBS
clangDriver
clangBasic
clangFrontend # For TextDiagnosticPrinter.
clangSerialization
LLVM_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
MC
Option
Support
TargetParser
)