Browse Source

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 1 year ago
parent
commit
8aa2f7199e
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/TDEMacros.cmake

+ 3
- 1
modules/TDEMacros.cmake View File

@@ -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