<html><body bgcolor="#FFFFFF"><div>You need to use the add_defintions() command<br><br>Sent from my iPod</div><div>Mike Jackson</div><div><br>On Nov 1, 2009, at 13:12, Alex H <<a href="mailto:aditya15417@hotmail.com">aditya15417@hotmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
Usually using g++ I can do the following:<div><br></div><div>g++ -D DEBUG main.cpp</div><div><br></div><div>how can I add the similar function of -D DEBUG in CMake? </div><div><br></div><div>I tried to read the add_executable() command and it did not provide something similar to this.. some guidelines are appreciated</div><div><br><div></div><br><br></div>                                            <br><hr>Chat online and in real-time with friends and family! <a href="http://get.live.com/messenger/overview" target="_new">Windows Live Messenger</a>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a></span><br><span></span><br><span>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ"><a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a></a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></span></div></blockquote></body></html>