blob: 20faa946f81a6e4be6b0acab3aa0489192da4b46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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@
|