<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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></body>
</html>