mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
parent
cf13e49544
commit
3fd9f4ab05
@ -187,3 +187,19 @@ if(NOT XCODE_VERSION VERSION_LESS 5)
|
||||
unset(RunCMake_TEST_NO_CLEAN)
|
||||
unset(RunCMake_TEST_OPTIONS)
|
||||
endif()
|
||||
|
||||
function(XcodeSchemaGeneration)
|
||||
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/XcodeSchemaGeneration-build)
|
||||
set(RunCMake_TEST_NO_CLEAN 1)
|
||||
set(RunCMake_TEST_OPTIONS "-DCMAKE_XCODE_GENERATE_SCHEME=ON")
|
||||
|
||||
file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
|
||||
file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
|
||||
|
||||
run_cmake(XcodeSchemaGeneration)
|
||||
run_cmake_command(XcodeSchemaGeneration-build xcodebuild -scheme foo build)
|
||||
endfunction()
|
||||
|
||||
if(NOT XCODE_VERSION VERSION_LESS 7)
|
||||
XcodeSchemaGeneration()
|
||||
endif()
|
||||
|
5
Tests/RunCMake/XcodeProject/XcodeSchemaGeneration.cmake
Normal file
5
Tests/RunCMake/XcodeProject/XcodeSchemaGeneration.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
|
||||
project(XcodeSchemaGeneration CXX)
|
||||
|
||||
add_executable(foo main.cpp)
|
Loading…
Reference in New Issue
Block a user