[CMake] adding extra target to CMakeLists.txt

Olaf Peter ope-devel at gmx.de
Thu Feb 11 14:41:44 EST 2010


OK, now I have it:

add_custom_target (syntax-check
 COMMAND $(CXX) $(CXXFLAGS) -Wall -Wextra -pedantic -fsyntax-only
$(CHECK_SRC) VERBATIM)


But how can I get there the Defines and Includes from regular target
compile?

Thanks,
Olaf


More information about the CMake mailing list