[CMake] adding extra target to CMakeLists.txt
Tyler Roscoe
tyler at cryptio.net
Wed Feb 10 15:13:14 EST 2010
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
More information about the CMake
mailing list