Hi,

I'm currently using

CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
  ${TestSourceFiles}
  EXTRA_INCLUDE header1.h
  EXTRA_INCLUDE header2.h
)

to genereate a test executable. I'd like to replace this with a call something like

CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
  ${TestSourceFiles}
  EXTRA_INCLUDES ${SOURCE_HEADERS}
)

is this possible? I tried, unsuccessfully, to find the CREATE_TEST_SOURCELIST macro, to see if modifying it would work.but I am open to suggestions.

My ultimate goal is to improve code coverage of my project. I've found that lcov (and gcov) only generate results for files included in an executable. So i'd like to force all the headers in my project into to the Test executable, so complete coverage reports are generated automaticcaly. That way i can catch developers who add headers without providing any tests.

Thanks for a great build system, and for any suggestions.

Luke

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to