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.
20 lines
507 B
20 lines
507 B
cmake_minimum_required(VERSION 3.16)
|
|
project(CTestTest@CASE_NAME@ C)
|
|
include(CTest)
|
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "SunPro" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 5.14)
|
|
set(CMAKE_C_STANDARD 99)
|
|
endif()
|
|
|
|
add_executable(TestTimeout TestTimeout.c)
|
|
|
|
if(NOT DEFINED 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@
|