We want to add a the cppcheck static analyzer to a product and it has input arguments such as:
cppcheck <files> \ --xml \ --force \ --output-file=results\cppcheck \ --error-exitcode=1 \ --enable=performance \ -I include/ \ -I internal/ \ -I ...
For a given target it’s pretty easy to get a list of all the source files.
However, I’m not able to easily get all of the
I thought it might be the contents of the
INCLUDE_DIRECTORIES property, but that doesn’t seem to have the include folders that come from packages we’ve added using
I checked the
INCLUDE_DIRECTORIES property using message()
I added logic to the end of my cmakefile that used
get_property() to get the targets
INCLUDE_DIRECTORIES value and then print it using
Any suggestions on how to proceed?