Update tde_add_check_executable macro

+ Add support for test arguments.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/27/head
Slávek Banko 4 years ago
parent ab096402b3
commit 8aa2f7199e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 4
      modules/TDEMacros.cmake

@ -1139,6 +1139,7 @@ macro( tde_add_check_executable _arg_target )
unset( _target )
unset( _automoc )
unset( _test )
unset( _test_args )
unset( _meta_includes )
unset( _sources )
unset( _destination )
@ -1162,6 +1163,7 @@ macro( tde_add_check_executable _arg_target )
if( "+${_arg}" STREQUAL "+TEST" )
set( _skip_store 1 )
set( _test 1 )
set( _storage "_test_args" )
endif( "+${_arg}" STREQUAL "+TEST" )
# found directive "META_INCLUDES"
@ -1245,7 +1247,7 @@ macro( tde_add_check_executable _arg_target )
if( _test_prefix )
set( _test_prefix "${_test_prefix}/" )
endif( _test_prefix )
add_test( NAME "${_test_prefix}${_target}" COMMAND "${_target}" )
add_test( NAME "${_test_prefix}${_target}" COMMAND "${_target}" ${_test_args} )
endif( _test )
endmacro( tde_add_check_executable )

Loading…
Cancel
Save