[CMake] add_executable with -D

Alex H aditya15417 at hotmail.com
Sun Nov 1 13:12:00 EST 2009


Usually using g++ I can do the following:
g++ -D DEBUG main.cpp
how can I add the similar function of -D DEBUG in CMake? 
I tried to read the add_executable() command and it did not provide something similar to this.. some guidelines are appreciated


 		 	   		  
_________________________________________________________________
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail you.
http://www.microsoft.com/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-id:SI_SB_3:092010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091101/60593f0b/attachment.htm>


More information about the CMake mailing list