2014-05-15 21:50:53 +04:00
|
|
|
include(RunCMake)
|
|
|
|
|
|
|
|
run_cmake(XcodeFileType)
|
2015-02-11 22:48:43 +03:00
|
|
|
run_cmake(XcodeAttributeGenex)
|
|
|
|
run_cmake(XcodeAttributeGenexError)
|
2015-04-04 23:13:45 +03:00
|
|
|
run_cmake(XcodeObjectNeedsQuote)
|
2015-02-22 21:00:11 +03:00
|
|
|
if (NOT XCODE_VERSION VERSION_LESS 6)
|
|
|
|
run_cmake(XcodePlatformFrameworks)
|
|
|
|
endif()
|
2015-08-18 22:30:54 +03:00
|
|
|
|
|
|
|
# Use a single build tree for a few tests without cleaning.
|
|
|
|
|
|
|
|
if(NOT XCODE_VERSION VERSION_LESS 5)
|
|
|
|
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/XcodeBundlesOSX-build)
|
|
|
|
set(RunCMake_TEST_NO_CLEAN 1)
|
|
|
|
set(RunCMake_TEST_OPTIONS "-DTEST_IOS=OFF")
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
|
|
|
|
file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
|
|
|
|
|
|
|
|
run_cmake(XcodeBundles)
|
|
|
|
run_cmake_command(XcodeBundles-build ${CMAKE_COMMAND} --build .)
|
|
|
|
|
|
|
|
unset(RunCMake_TEST_BINARY_DIR)
|
|
|
|
unset(RunCMake_TEST_NO_CLEAN)
|
|
|
|
unset(RunCMake_TEST_OPTIONS)
|
|
|
|
|
|
|
|
set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/XcodeBundlesIOS-build)
|
|
|
|
set(RunCMake_TEST_NO_CLEAN 1)
|
|
|
|
set(RunCMake_TEST_OPTIONS "-DTEST_IOS=ON")
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
|
|
|
|
file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}")
|
|
|
|
|
|
|
|
run_cmake(XcodeBundles)
|
|
|
|
run_cmake_command(XcodeBundles-build ${CMAKE_COMMAND} --build .)
|
|
|
|
|
|
|
|
unset(RunCMake_TEST_BINARY_DIR)
|
|
|
|
unset(RunCMake_TEST_NO_CLEAN)
|
|
|
|
unset(RunCMake_TEST_OPTIONS)
|
|
|
|
endif()
|