diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:13:55 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-08 09:13:55 +0900 |
commit | d59bf9db28c0f44bf4f61028963b4ef324d36c3b (patch) | |
tree | 9f3ede75a80772a7cc4fc18abd981a91077fe140 /Tests/RunCMake/XcodeProject/RunCMakeTest.cmake | |
parent | a20e63ca854355e86691c077f4b404eedc43533f (diff) | |
download | cmake-d59bf9db28c0f44bf4f61028963b4ef324d36c3b.tar.gz cmake-d59bf9db28c0f44bf4f61028963b4ef324d36c3b.tar.bz2 cmake-d59bf9db28c0f44bf4f61028963b4ef324d36c3b.zip |
Imported Upstream version 3.14.4upstream/3.14.4
Diffstat (limited to 'Tests/RunCMake/XcodeProject/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/XcodeProject/RunCMakeTest.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake b/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake index 4918f7ca4..191f56dd7 100644 --- a/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake +++ b/Tests/RunCMake/XcodeProject/RunCMakeTest.cmake @@ -256,4 +256,19 @@ if(XCODE_VERSION VERSION_GREATER_EQUAL 8) deployment_target_test(watchOS watchsimulator) endif() +if(XCODE_VERSION VERSION_GREATER_EQUAL 8) + function(xctest_lookup_test SystemName SDK) + set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/XCTestLookup-${SDK}-build) + set(RunCMake_TEST_OPTIONS "-DCMAKE_SYSTEM_NAME=${SystemName}" "-DCMAKE_OSX_SYSROOT=${SDK}") + + run_cmake(XCTestLookup) + endfunction() + + xctest_lookup_test(Darwin macosx) + xctest_lookup_test(iOS iphoneos) + xctest_lookup_test(iOS iphonesimulator) + xctest_lookup_test(tvOS appletvos) + xctest_lookup_test(tvOS appletvsimulator) +endif() + # Please add macOS-only tests above before the device-specific tests. |