I think that instead of defining the variable in the parent scope, it should instead be a global property. This way you don't have to track the level of recursion in each file. Also, with set property you can do an append:
set_property(GLOBAL APPEND PROPERTY COVERAGE_TEST_TARGETS ${TEST_NAME})
« Back to merge proposal
I think that instead of defining the variable in the parent scope, it should instead be a global property. This way you don't have to track the level of recursion in each file. Also, with set property you can do an append:
set_property(GLOBAL APPEND PROPERTY COVERAGE_ TEST_TARGETS ${TEST_NAME})