<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<span class="Apple-style-span" style="font-family: 'Segoe UI', Tahoma, Verdana, Arial, sans-serif; color: rgb(68, 68, 68); ">Okay here's what I've done so far:<div><br></div><div><div>add_definitions(-DV_FILM)</div><div>add_executable(hassel-film has-main.cpp)</div><div><br></div><div>remove_definitions(-DV_FILM)</div><div>add_definitions(-DV_DIGITAL)</div><div>add_executable(hassel-digital has-main.cpp)</div><div><br></div>What I want to do is after running cmake . and typing it make. I want to generate two executable, one is hassel-film which is has-main.cpp compiled with the flag -V_FILM </div><div>and the other one is hassel-digital which is compiled with the flag -V_DIGITAL. How can I do this? The above code will compile with V_DIGITAL flag, which is not what I want.<br></div><div><br></div></span><br><div></div><br><br><br><br>> Date: Mon, 2 Nov 2009 22:12:26 -0800<br>> From: tyler@cryptio.net<br>> To: aditya15417@hotmail.com<br>> CC: cmake@cmake.org<br>> Subject: Re: [CMake] help me to resolve this issue<br>> <br>> On Tue, Nov 03, 2009 at 05:54:16AM +0000, Alex H wrote:<br>> > if I have add_definition then the add_executable underneath it gets compiled with the definition specified above it?<br>> <br>> Why don't you try it and see? If it doesn't work, post your CMakeLists<br>> and see if someone can help.<br>> <br>> tyler<br>                                            <br /><hr />New Windows 7: Simplify what you do everyday. <a href='http://windows.microsoft.com/shop' target='_new'>Find the right PC for you.</a></body>
</html>