Skip to content

Commit

Permalink
Add code coverage to example target
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzw authored Oct 8, 2024
1 parent 656eb06 commit 5d6494d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,14 @@ function(demo_add_example)
if (DEMO_ENABLE_SANITIZERS AND AAL_FILES)
add_sanitizers(${AAL_TARGET})
endif ()

if (ASDE_ENABLE_COVERAGE)
append_coverage_compiler_flags_to_target(${AAL_TARGET})

foreach (COVERAGE_TARGET IN LISTS ASDE_COVERAGE_TARGETS)
add_dependencies(${COVERAGE_TARGET} ${AAL_TARGET})
endforeach ()
endif ()
endfunction()

if (DEMO_ENABLE_TEST)
Expand Down

0 comments on commit 5d6494d

Please sign in to comment.