<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>How can I do an if else statement in CMake?? Do I need to use options?<br><div></div><br><br><br><br><hr id="stopSpelling">From: mike.jackson@bluequartz.net<br>To: aditya15417@hotmail.com<br>Subject: Re: [CMake] add_executable with -D<br>Date: Sun, 1 Nov 2009 13:59:15 -0500<br>CC: cmake@cmake.org<br><br><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 &lt;<a href="mailto:aditya15417@hotmail.com">aditya15417@hotmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote><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?&nbsp;</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">Windows Live Messenger</a>
</div></blockquote><blockquote><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com"></a><a href="http://www.kitware.com">www.kitware.com</a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html"></a><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</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><a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</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>                                               <br /><hr />Windows Live Hotmail:  <a href='http://www.microsoft.com/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-id:SI_SB_4:092009' target='_new'>Your friends can get your Facebook updates, right from HotmailŪ.</a></body>
</html>