diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-02-26 20:55:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-23 13:12:20 (GMT) |
commit | 87a4b8580cad34fefa5c5e1833b0963a6bcf3e7d (patch) | |
tree | 017d4c10af4a7f216f34672f165913033bc38377 /Tests/CMakeLists.txt | |
parent | ba14510b4ebdbbfe115e29111615a4b775fb7198 (diff) | |
download | CMake-87a4b8580cad34fefa5c5e1833b0963a6bcf3e7d.zip CMake-87a4b8580cad34fefa5c5e1833b0963a6bcf3e7d.tar.gz CMake-87a4b8580cad34fefa5c5e1833b0963a6bcf3e7d.tar.bz2 |
Tests: Add XCTest example to test Frameworks and Cocoa App Bundles
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 765fc80..9e419f8 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1505,6 +1505,12 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release ) endif() + if(CMake_TEST_XCODE_VERSION AND NOT CMake_TEST_XCODE_VERSION VERSION_LESS 6 + AND OSX_VERSION MATCHES "^([0-9]+\\.[0-9]+)") + set(XCTest_BUILD_OPTIONS -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_MATCH_1}) + ADD_TEST_MACRO(XCTest ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> -V) + endif() + add_test(linkorder1 ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/LinkLineOrder" |