llvm-project/clang/unittests/Lex/CMakeLists.txt
Chuanqi Xu 54cf24dc6e [NFC] Refactor ModuleDeclStateTest to make it not dependent on Frontend
Required in https://reviews.llvm.org/D137526. And it is indeed odd that
LexTest depends on ClangFrontend.
2023-02-15 11:30:18 +08:00

30 lines
498 B
CMake

set(LLVM_LINK_COMPONENTS
Support
)
add_clang_unittest(LexTests
DependencyDirectivesScannerTest.cpp
HeaderMapTest.cpp
HeaderSearchTest.cpp
LexerTest.cpp
ModuleDeclStateTest.cpp
PPCallbacksTest.cpp
PPConditionalDirectiveRecordTest.cpp
PPDependencyDirectivesTest.cpp
PPMemoryAllocationsTest.cpp
)
clang_target_link_libraries(LexTests
PRIVATE
clangAST
clangBasic
clangLex
clangParse
clangSema
)
target_link_libraries(LexTests
PRIVATE
LLVMTestingSupport
)