cmake: Add new code coverage targets. (#6796)
authorMathias Preiner <mathias.preiner@gmail.com>
Thu, 24 Jun 2021 21:04:13 +0000 (14:04 -0700)
committerGitHub <noreply@github.com>
Thu, 24 Jun 2021 21:04:13 +0000 (14:04 -0700)
commita0ed9d5b519b636ed0351db13bb1c3f7469d4e94
tree3b9baacca3391d1fa860b884ec792e7c49faf6bb
parent4eaef5e472121396ee77023d49b23556ac69b747
cmake: Add new code coverage targets. (#6796)

This commit adds the following new code coverage targets:

- coverage-reset: Resets the code coverage counters

- coverage: Generates code coverage report for all cvc5 executions since the
            last coverage-reset

- coverage-test: This was previously the coverage target that runs the
                 tests and generates the coverage report (as used for
                 nightlies).

By using `make coverage-reset` and `make coverage` it is now possible to
generate coverage reports for arbitrary executions of cvc5.
CMakeLists.txt
cmake/CodeCoverage.cmake