Signed-off-by: Gregor Jasny <gja...@googlemail.com> --- Tests/CMakeLists.txt | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 6afedf2..a2e2e24 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -3066,15 +3066,26 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release endif() if(XCODE_VERSION AND NOT "${XCODE_VERSION}" VERSION_LESS 5) - add_test(XCTest ${CMAKE_CTEST_COMMAND} + add_test(XCTest.Xcode ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/XCTest" - "${CMake_BINARY_DIR}/Tests/XCTest" + "${CMake_BINARY_DIR}/Tests/XCTest.Xcode" ${build_generator_args} --build-project XCTest --build-options ${build_options} --test-command ${CMAKE_CTEST_COMMAND} -C \${CTEST_CONFIGURATION_TYPE} -V ) - list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/XCTest") + list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/XCTest.Xcode") + + add_test(XCTest.Make ${CMAKE_CTEST_COMMAND} + --build-and-test + "${CMake_SOURCE_DIR}/Tests/XCTest" + "${CMake_BINARY_DIR}/Tests/XCTest.Make" + --build-generator "Unix Makefiles" + --build-project XCTest + --build-options ${build_options} -DCMAKE_OSX_SYSROOT=macosx + --test-command ${CMAKE_CTEST_COMMAND} -C \${CTEST_CONFIGURATION_TYPE} -V + ) + list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/XCTest.Make") endif() endif() -- 2.3.0 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers