... | ... | @@ -126,8 +126,9 @@ which you have to adjust using the CMake tools to fit your environment. |
|
|
# endif(COMMAND add_pc_lint)
|
|
|
#
|
|
|
function(add_pc_lint target)
|
|
|
get_directory_property(lint_include_directories INCLUDE_DIRECTORIES)
|
|
|
get_directory_property(lint_defines COMPILE_DEFINITIONS)
|
|
|
# Get the include directories and compile definitions for the provided target.
|
|
|
get_target_property(lint_include_directories ${target} INCLUDE_DIRECTORIES)
|
|
|
get_target_property(lint_defines ${target} COMPILE_DEFINITIONS)
|
|
|
|
|
|
# let's get those elephants across the alps
|
|
|
# prepend each include directory with "-i"; also quotes the directory
|
... | ... | |