mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
19 lines
511 B
CMake
19 lines
511 B
CMake
add_custom_target(SwiftUnitTests)
|
|
|
|
if (NOT SWIFT_BUILD_TOOLS)
|
|
# These tests are not properly configured for stdlib-only builds.
|
|
else()
|
|
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)
|
|
endif()
|