On Wed, Feb 10, 2010 at 09:08:50PM +0100, Olaf Peter wrote: > How can I add an extra lint/syntax check target for my executable, like: > > check-syntax: > c++ -o /dev/null ${CXX_FLAGS} ${CXX_DEFINES} -S ${MY_PROJECT_SOURCES} > .PHONY: check-syntax
You'll want to look at add_custom_command() and maybe add_custom_target(). The FAQ has some examples you can look to as well. tyler _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake