<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="DejaVu Sans">I would like to exclude third party header
files from the coverage output. We're using ctest, cmake (version
2.8.5) and cdash, all on Linux. The archive layout is as follows:<br>
<br>
/<br>
/Code/<br>
/Code/Application/<br>
/Code/Application/src/<br>
/Code/Third-Party/<br>
</font><font face="DejaVu Sans">/Code/Third-Party/boost/<br>
</font><font face="DejaVu Sans">/Code/Third-Party/boost/boost-1-47-0/</font><br>
<font face="DejaVu Sans">/Code/Third-Party/boost/boost-1-47-0/include/<br>
</font><font face="DejaVu Sans">/Code/Third-Party/boost/boost-1-47-0/lib/</font><br>
/Code/Build/<br>
<br>
The /Code/Build directory contains a script that is called using
ctest -S /Code/Build/buildscript. The /Code directory contains a
CMakeLists.txt, a CTestConfig.cmake and a CTestCustom.cmake file.<br>
<font face="DejaVu Sans"></font><br>
The CMakeLists.txt file in <font face="DejaVu Sans">/Code/Application/src/
uses </font>CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/CTestCustom.cmake
${CMAKE_BINARY_DIR}/CTestCustom.cmake COPYONLY) to copy the
CTestCustom.cmake file to the toplevel of the builddirectory. The
file does indeed end up in the toplevel builddirectory.<br>
<br>
The CTestCustom.cmake file is as follows:<br>
<br>
SET(CTEST_CUSTOM_COVERAGE_EXCLUDE<br>
${CTEST_CUSTOM_COVERAGE_EXCLUDE}<br>
"/Code/Third-Party/*"<br>
)<br>
<br>
I compile all code with the following flags:<br>
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs
-ftest-coverage")<br>
<br>
Although coverage does get sent to the CDash dashboard, the results
contain more than I would like to see. I would like to exclude the
.hpp files from the <font face="DejaVu Sans">/Code/Third-Party/boost/boost-1-47-0/include/
directory from the dashboard.<br>
<br>
My questions:<br>
</font><br>
<font face="DejaVu Sans">-- Is the </font>/Code/Third-Party/*
expression recursive, or do I need to add the full path to the
include directory of boost?<br>
-- Does the '/' at the front of the path mean the CMAKE_SOURCE_DIR?<br>
<br>
Any advice or pointers to information on how to achieve the
exclusion would be greatly appreciated.<br>
<br>
With kind regards,<br>
Micha Hergarden<br>
</body>
</html>