38 lines
800 B
CMake
38 lines
800 B
CMake
|
set(LLVM_LINK_COMPONENTS
|
||
|
support
|
||
|
)
|
||
|
|
||
|
get_filename_component(CLANG_LINT_SOURCE_DIR
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/../../clang-tidy REALPATH)
|
||
|
include_directories(${CLANG_LINT_SOURCE_DIR})
|
||
|
|
||
|
add_extra_unittest(ClangTidyTests
|
||
|
ClangTidyDiagnosticConsumerTest.cpp
|
||
|
ClangTidyOptionsTest.cpp
|
||
|
IncludeInserterTest.cpp
|
||
|
GoogleModuleTest.cpp
|
||
|
LLVMModuleTest.cpp
|
||
|
NamespaceAliaserTest.cpp
|
||
|
ObjCModuleTest.cpp
|
||
|
OverlappingReplacementsTest.cpp
|
||
|
UsingInserterTest.cpp
|
||
|
ReadabilityModuleTest.cpp)
|
||
|
|
||
|
target_link_libraries(ClangTidyTests
|
||
|
PRIVATE
|
||
|
clangAST
|
||
|
clangASTMatchers
|
||
|
clangBasic
|
||
|
clangFrontend
|
||
|
clangLex
|
||
|
clangTidy
|
||
|
clangTidyAndroidModule
|
||
|
clangTidyGoogleModule
|
||
|
clangTidyLLVMModule
|
||
|
clangTidyObjCModule
|
||
|
clangTidyReadabilityModule
|
||
|
clangTidyUtils
|
||
|
clangTooling
|
||
|
clangToolingCore
|
||
|
)
|