Sam McCall | b9de3eb | 2019-05-07 07:05:47 | [diff] [blame] | 1 | include(CMakeDependentOption) |
| 2 | |
Chandler Carruth | d9063c4 | 2013-09-04 17:35:07 | [diff] [blame] | 3 | add_subdirectory(clang-apply-replacements) |
Alexander Shaposhnikov | bf3c84c | 2016-09-02 02:56:07 | [diff] [blame] | 4 | add_subdirectory(clang-reorder-fields) |
Chandler Carruth | d9063c4 | 2013-09-04 17:35:07 | [diff] [blame] | 5 | add_subdirectory(modularize) |
Alp Toker | 6462e9e | 2014-07-14 22:15:29 | [diff] [blame] | 6 | add_subdirectory(clang-tidy) |
Alp Toker | 6462e9e | 2014-07-14 22:15:29 | [diff] [blame] | 7 | |
Nico Weber | 5f5a745 | 2019-03-15 11:54:01 | [diff] [blame] | 8 | add_subdirectory(clang-change-namespace) |
Julie Hockett | e975a47 | 2018-03-22 23:34:46 | [diff] [blame] | 9 | add_subdirectory(clang-doc) |
Nico Weber | 43356f5 | 2019-03-25 14:09:10 | [diff] [blame] | 10 | add_subdirectory(clang-include-fixer) |
Haojian Wu | 357ef99 | 2016-09-21 13:18:19 | [diff] [blame] | 11 | add_subdirectory(clang-move) |
Nico Weber | 43356f5 | 2019-03-25 14:09:10 | [diff] [blame] | 12 | add_subdirectory(clang-query) |
Alp Toker | 6462e9e | 2014-07-14 22:15:29 | [diff] [blame] | 13 | add_subdirectory(pp-trace) |
Sam Panzer | 8e0df50 | 2012-08-24 23:29:33 | [diff] [blame] | 14 | add_subdirectory(tool-template) |
Chandler Carruth | 118232f | 2012-08-07 08:33:04 | [diff] [blame] | 15 | |
| 16 | # Add the common testsuite after all the tools. |
Michal Gorny | a81de44 | 2017-08-29 05:58:08 | [diff] [blame] | 17 | if(CLANG_INCLUDE_TESTS) |
Chandler Carruth | 118232f | 2012-08-07 08:33:04 | [diff] [blame] | 18 | add_subdirectory(test) |
Edwin Vane | c0b7be6 | 2013-04-03 15:11:08 | [diff] [blame] | 19 | add_subdirectory(unittests) |
Alp Toker | 6462e9e | 2014-07-14 22:15:29 | [diff] [blame] | 20 | endif() |
Alexander Kornienko | ad166f5 | 2016-01-27 11:37:08 | [diff] [blame] | 21 | |
| 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() |
| 27 | |
Sam McCall | b9de3eb | 2019-05-07 07:05:47 | [diff] [blame] | 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() |