Files
swift-mirror/unittests/CMakeLists.txt
2014-02-04 07:00:48 +00:00

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()