diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 728d663..9263d24 100644 --- a/modules/TDEMacros.cmake +++ b/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 )