Allow specification of a namespace for modules under test.
Change-Id: I957d662d677766732f324e48a6bc42f23f1a444c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
parent
ecb20e57d4
commit
a45a80f322
@ -135,6 +135,11 @@ function(test_module_includes)
|
|||||||
while(all_args)
|
while(all_args)
|
||||||
list(GET all_args 0 qtmodule)
|
list(GET all_args 0 qtmodule)
|
||||||
list(GET all_args 1 qtclass)
|
list(GET all_args 1 qtclass)
|
||||||
|
if (${qtclass}_NAMESPACE)
|
||||||
|
set(qtinstancetype ${${qtclass}_NAMESPACE}::${qtclass})
|
||||||
|
else()
|
||||||
|
set(qtinstancetype ${qtclass})
|
||||||
|
endif()
|
||||||
list(REMOVE_AT all_args 0 1)
|
list(REMOVE_AT all_args 0 1)
|
||||||
set(includes_string
|
set(includes_string
|
||||||
"${includes_string}
|
"${includes_string}
|
||||||
@ -145,7 +150,7 @@ function(test_module_includes)
|
|||||||
)
|
)
|
||||||
set(instances_string
|
set(instances_string
|
||||||
"${instances_string}
|
"${instances_string}
|
||||||
${qtclass} local${qtclass};
|
${qtinstancetype} local${qtclass};
|
||||||
")
|
")
|
||||||
endwhile()
|
endwhile()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user