Hello,
# Folder structure
.
|-- src/
|-- test/
|-- testmodules/
|-- CMakeLists.txt
setup_target_for_coverage_gcovr_html(
NAME ${PROJECT_NAME}_coverage_html
EXECUTABLE ${PROJECT_NAME} --gtest_output=xml:report.xml
BASE_DIRECTORY ${CMAKE_SOURCE_DIR}
EXCLUDE "test/*")
In the above example, the testmodules also get excluded even if it was just the test folder that I wanted to exclude.
Any help is appreciated. Thank you.