代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/2048-cpp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# run by:
# ctest -S setup.cmake
# --- Project-specific -Doptions
# these will be used if the project isn't already configured.
set(_opts)
# --- boilerplate follows
# CTEST_CMAKE_GENERATOR must always be defined
if(NOT DEFINED CTEST_CMAKE_GENERATOR AND DEFINED ENV{CMAKE_GENERATOR})
set(CTEST_CMAKE_GENERATOR $ENV{CMAKE_GENERATOR})
endif()
if(NOT DEFINED CTEST_CMAKE_GENERATOR AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
find_program(_gen NAMES ninja ninja-build samu)
if(_gen)
execute_process(COMMAND ${_gen} --version
OUTPUT_VARIABLE _ninja_version
OUTPUT_STRIP_TRAILING_WHITESPACE
RESULT_VARIABLE _gen_ok
TIMEOUT 10)
if(_gen_ok EQUAL 0 AND _ninja_version VERSION_GREATER_EQUAL 1.10)
set(CTEST_CMAKE_GENERATOR "Ninja")
endif()
endif(_gen)
endif()
if(NOT DEFINED CTEST_CMAKE_GENERATOR)
set(CTEST_BUILD_FLAGS -j) # not --parallel as this goes to generator directly
if(WIN32)
set(CTEST_CMAKE_GENERATOR "MinGW Makefiles")
else()
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
endif()
endif()
if(NOT DEFINED CTEST_BUILD_CONFIGURATION)
list(APPEND _opts -DCMAKE_BUILD_TYPE=Release)
endif()
set(CTEST_SOURCE_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
if(NOT DEFINED CTEST_BINARY_DIRECTORY)
set(CTEST_BINARY_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/build)
endif()
# -- build and test
ctest_start("Experimental")
ctest_configure(
OPTIONS "${_opts}"
RETURN_VALUE _ret
CAPTURE_CMAKE_ERROR _err)
if(NOT (_ret EQUAL 0 AND _err EQUAL 0))
message(FATAL_ERROR "Configure failed: return ${_ret} cmake return ${_err}")
endif()
ctest_build(
RETURN_VALUE _ret
CAPTURE_CMAKE_ERROR _err)
if(NOT (_ret EQUAL 0 AND _err EQUAL 0))
message(FATAL_ERROR "Build failed.")
endif()
ctest_test(
RETURN_VALUE _ret
CAPTURE_CMAKE_ERROR _err)
if(NOT (_ret EQUAL 0 AND _err EQUAL 0))
message(FATAL_ERROR "Test failed.")
endif()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。