How to use cpplint code style checking with CMake?
问题 The only online resources I have found are the CMake documentation on CMAKE_<LANG>_CPPLINT (link here) and this example (link here), but I cannot figure out how to actually use it inside a CMakeLists.txt file. I tried the example provided, but I can't make it work. FYI, I installed cpplint as explained here. As of now, I can run the cpplint python script inside CMakeLists.txt using this CMake command: execute_process(COMMAND cpplint path/To/File/To/Analyse.cpp) However, I am pretty sure that