llvm-project/clang-tools-extra/clang-tidy/tool/CMakeLists.txt

36 lines
718 B
CMake
Raw Normal View History

set(LLVM_LINK_COMPONENTS
support
)
add_clang_tool(clang-tidy
ClangTidyMain.cpp
)
add_dependencies(clang-tidy
clang-headers
)
target_link_libraries(clang-tidy
clangAST
clangASTMatchers
clangBasic
clangTidy
clangTidyBoostModule
clangTidyCERTModule
clangTidyCppCoreGuidelinesModule
clangTidyGoogleModule
clangTidyHICPPModule
clangTidyLLVMModule
clangTidyMiscModule
clangTidyModernizeModule
clangTidyMPIModule
clangTidyPerformanceModule
clangTidyReadabilityModule
clangTooling
clangToolingCore
)
install(TARGETS clang-tidy
RUNTIME DESTINATION bin)
install(PROGRAMS clang-tidy-diff.py DESTINATION share/clang)
install(PROGRAMS run-clang-tidy.py DESTINATION share/clang)