Index: CMakeLists.txt =================================================================== --- CMakeLists.txt +++ CMakeLists.txt @@ -649,6 +649,7 @@ add_subdirectory(utils/not) add_subdirectory(utils/llvm-lit) add_subdirectory(utils/yaml-bench) + add_subdirectory(utils/lit) else() if ( LLVM_INCLUDE_TESTS ) message(FATAL_ERROR "Including tests when not building utils will not work. Index: utils/lit/CMakeLists.txt =================================================================== --- utils/lit/CMakeLists.txt +++ utils/lit/CMakeLists.txt @@ -0,0 +1,4 @@ +add_lit_testsuite(check-lit "Running lit's self tests" + ${CMAKE_CURRENT_SOURCE_DIR}/tests + DEPENDS FileCheck not) +set_target_properties(check-lit PROPERTIES FOLDER "Tests")