Start adding support for generating CC1 command lines from CompilerInvocation
[llvm-project.git] / clang-tools-extra / CMakeLists.txt
blob57bb970575608af859315cddfc01271ada13e500
1 include(CMakeDependentOption)
3 add_subdirectory(clang-apply-replacements)
4 add_subdirectory(clang-reorder-fields)
5 add_subdirectory(modularize)
6 add_subdirectory(clang-tidy)
8 add_subdirectory(clang-change-namespace)
9 add_subdirectory(clang-doc)
10 add_subdirectory(clang-include-fixer)
11 add_subdirectory(clang-move)
12 add_subdirectory(clang-query)
13 add_subdirectory(pp-trace)
14 add_subdirectory(tool-template)
16 # Add the common testsuite after all the tools.
17 if(CLANG_INCLUDE_TESTS)
18 add_subdirectory(test)
19 add_subdirectory(unittests)
20 endif()
22 option(CLANG_TOOLS_EXTRA_INCLUDE_DOCS "Generate build targets for the Clang Extra Tools docs."
23   ${LLVM_INCLUDE_DOCS})
24 if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
25   add_subdirectory(docs)
26 endif()
28 # clangd has its own CMake tree. It requires threads.
29 CMAKE_DEPENDENT_OPTION(CLANG_ENABLE_CLANGD "Build clangd language server" ON
30                        "LLVM_ENABLE_THREADS" OFF)
31 if (CLANG_ENABLE_CLANGD)
32   add_subdirectory(clangd)
33 endif()