cmake-modules
cmake-modules copied to clipboard
CodeCoverage is not running for my .c file under test, generating a coverage for test files.
Hi
I used the CodeCoverage.cmake, my project folder structure is something like this src/ application1/ app1.c app1.h application2/ app2.c app2.h test/ application1/ app1_test.cpp build/ cmakeList.txt
I used CodeCoverage module as it is and it works, but the problem is it generates the coverage for app1_test.cpp, not for the actual file under test which is app1.c
so i modified your CMake module and added the one more parameter which takes my c and replaced ${PROJECT_SOURCE_DIR} to my new parameter and that works for me. does this module is not intended for such type of folder structure?