Move coverage_generate dependencies to parameters
The coverage_generate function got new parameters for defining the
source, the binary and the c-picker cache directory.
Change-Id: I703d277654983b68cc38a90d320ce03110b7c2f5
Signed-off-by: Imre Kis <imre.kis@arm.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b14ab7..0d1452b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,7 +120,13 @@
set(TF_A_UT_COVERAGE_REPORT_DIR "${CMAKE_CURRENT_BINARY_DIR}/tf-a-unit-tests-coverage")
# Collecting coverage
- coverage_generate(NAME "Unit test" OUTPUT_FILE ${COVERAGE_FILE})
+ coverage_generate(
+ NAME "Unit test"
+ SOURCE_DIR ${TF_A_PATH}
+ BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}
+ CPICKER_MAPPING_PATH ${CPICKER_CACHE_PATH}
+ OUTPUT_FILE ${COVERAGE_FILE}
+ )
# Filtering TF-A and unit test coverage
coverage_filter(