Yeah coverage in cmake is a bit weird. At least I cannot get to work properly. But is cmake actually using the variables? E.g. tried to set CTEST_COVERAGE_COMMAND before including Ctest, but it is not picked up by ctest. Same goes for CTEST_SOURCE_DIRECTORY.