mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
14 lines
380 B
CMake
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)
|