171e9ee4c27b70b94662f6fa943df1c65c23c335
[lldb.git] / clang-tools-extra / CMakeLists.txt
1 add_subdirectory(clang-apply-replacements)
2 add_subdirectory(clang-rename)
3 add_subdirectory(modularize)
4 if(CLANG_ENABLE_STATIC_ANALYZER)
5 add_subdirectory(clang-tidy)
6 endif()
7
8 add_subdirectory(clang-query)
9 add_subdirectory(include-fixer)
10 add_subdirectory(pp-trace)
11 add_subdirectory(tool-template)
12
13 # Add the common testsuite after all the tools.
14 # TODO: Support tests with more granularity when features are off?
15 if(CLANG_ENABLE_STATIC_ANALYZER AND CLANG_INCLUDE_TESTS)
16 add_subdirectory(test)
17 add_subdirectory(unittests)
18 endif()
19
20 option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
21   ${LLVM_INCLUDE_DOCS})
22 if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
23   add_subdirectory(docs)
24 endif()
25