[CMake] adding extra target to CMakeLists.txt

Olaf Peter ope-devel at gmx.de
Wed Feb 10 15:08:50 EST 2010


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

to make created Makefile??

thanks,
Olaf



More information about the CMake mailing list