Files
swift-mirror/unittests/CMakeLists.txt
Jordan Rose 1eec5db8c5 CMake: get unit tests working.
Whatever difficulty there supposedly was in doing this for Clang must
apply only to standalone builds where no LLVM source is available.

Swift SVN r3057
2012-10-25 18:30:06 +00:00

14 lines
380 B
CMake

add_custom_target(SwiftUnitTests)
set_target_properties(SwiftUnitTests PROPERTIES FOLDER "Tests")
function(add_swift_unittest test_dirname)
add_unittest(SwiftUnitTests ${test_dirname} ${ARGN})
endfunction()
file(GLOB entries *)
foreach(entry ${entries})
if(IS_DIRECTORY ${entry} AND EXISTS ${entry}/CMakeLists.txt)
add_subdirectory(${entry})
endif()
endforeach(entry)