X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCMakeLists.txt;h=6bcb8cec08ed6551db16dd8d4d1bdefea11df37d;hb=9253eff13e3eb1c4ae66ae2b660c702f285c229d;hp=1f417c2a0fc6715489dc4e452b31c909f0bed1ae;hpb=38941a6a2067022a99d14daf0c8564ce5a0c131e;p=oota-llvm.git diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1f417c2a0fc..6bcb8cec08e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,7 @@ +if(LLVM_BUILD_EXAMPLES) + set(ENABLE_EXAMPLES 1) +endif() + configure_lit_site_cfg( ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg @@ -49,7 +53,6 @@ set(LLVM_TEST_DEPENDS llvm-split llvm-symbolizer llvm-tblgen - macho-dump opt FileCheck count @@ -96,6 +99,16 @@ if(TARGET ocaml_llvm) ) endif() +if(LLVM_BUILD_EXAMPLES) + list(APPEND LLVM_TEST_DEPENDS + Kaleidoscope-Ch3 + Kaleidoscope-Ch4 + Kaleidoscope-Ch5 + Kaleidoscope-Ch6 + Kaleidoscope-Ch7 + ) +endif() + add_lit_testsuite(check-llvm "Running the LLVM regression tests" ${CMAKE_CURRENT_BINARY_DIR} PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg