Hello, I use astyle in my projects but it is not related to build (not a target). I have a cmake script that I launch using "cmake -P" so I don't have to write too much .bat or .sh scripts. This script has the following options (using -D command line parameters): - folder where to recursively find the sources to be beautified - whether or not to run the tool "inplace" or copy files to another directory first so I can do a diff between before and after
Regards, Gregoire -----Original Message----- From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of ????? ????? Sent: vendredi 31 janvier 2014 16:54 To: Leif Walsh Cc: cmake@cmake.org Subject: Re: [CMake] AStyle or similar code beautifier 2014-01-31 Leif Walsh <leif.wa...@gmail.com>: > What would be a good way to run a tool like this just before compiling? I'd prefer running such a tool *after* compiling. If you have a syntax error, your sources can be ruinned. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake