title: clang-tidy cmake exclude file from check
body: <p>I have a dependency as source in my project that I have no control over.
  I'm using cmake's clang-tidy integration to analyze my code, and this dependency is firing A LOT of warnings. Is there a way to tell cmake not to run clang-tidy on specific files ?<br>
  I tried to add the files to the <code>-line-filter</code> option of clang-tidy, but this doesn't work:</p>
  
  <pre><code>set_target_properties(target PROPERTIES
  CXX_CLANG_TIDY "${clang_tidy_loc};\
  ${TIDY_CONFIG} \
  -line-filter=\"[\
  {\"name\":\"path/to/file.cpp\"},\
  {\"name\":\"path/to/file.h\"}\
  ]\"")
  </code></pre>
  
  <p>If the solution could work with other static analyzers like cppcheck it would be really nice.
  Thanks.</p>