<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
if I have add_definition then the add_executable underneath it gets compiled with the definition specified above it?<div><br></div><div><br><br><div></div><br><br><br><br>&gt; Date: Mon, 2 Nov 2009 20:11:41 -0800<br>&gt; From: tyler@cryptio.net<br>&gt; To: aditya15417@hotmail.com<br>&gt; CC: cmake@cmake.org<br>&gt; Subject: Re: [CMake] help me to resolve this issue<br>&gt; <br>&gt; On Tue, Nov 03, 2009 at 03:32:04AM +0000, Alex H wrote:<br>&gt; &gt; Well, what I want to do is that in my code, I have a #define NORMAL_COMPILE, and some other ones...<br>&gt; &gt; How can I let cmake define those macro so that when I type make, it will create an executable with the define included?<br>&gt; <br>&gt; You use add_definions(), but what does this have to do with your other<br>&gt; problem?<br>&gt; <br>&gt; tyler<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>