You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
374 B

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@