mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 22:59:56 -05:00
2f5eb1800b
This test will consolidate CTest timeout-related tests.
16 lines
374 B
Plaintext
16 lines
374 B
Plaintext
cmake_minimum_required(VERSION 3.16)
|
|
project(CTestTest@CASE_NAME@ C)
|
|
include(CTest)
|
|
|
|
add_executable(TestTimeout TestTimeout.c)
|
|
|
|
if(NOT TIMEOUT)
|
|
set(TIMEOUT 4)
|
|
endif()
|
|
target_compile_definitions(TestTimeout PRIVATE TIMEOUT=${TIMEOUT})
|
|
|
|
add_test(NAME TestTimeout COMMAND TestTimeout)
|
|
set_property(TEST TestTimeout PROPERTY TIMEOUT ${TIMEOUT})
|
|
|
|
@CASE_CMAKELISTS_SUFFIX_CODE@
|