<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
But I have only one cpp file and I want it do have different properties...<div><br></div><div>What does the SSE_COMPILE_FLAGS do?<br><br><div></div><br><br><br><br>&gt; Date: Tue, 3 Nov 2009 22:59:11 -0500<br>&gt; Subject: Re: [CMake] help me to resolve this issue<br>&gt; From: mike.jackson@bluequartz.net<br>&gt; To: aditya15417@hotmail.com<br>&gt; <br>&gt; set_source_files_properties( has-main.cpp<br>&gt;                         PROPERTIES  COMPILE_FLAGS ${SSE_COMPILE_FLAGS} )<br>&gt; _________________________________________________________<br>&gt; Mike Jackson                  mike.jackson@bluequartz.net<br>&gt; BlueQuartz Software                    www.bluequartz.net<br>&gt; Principal Software Engineer                  Dayton, Ohio<br>&gt; <br>&gt; On Tue, Nov 3, 2009 at 10:40 PM, Alex H &lt;aditya15417@hotmail.com&gt; wrote:<br>&gt; &gt; Okay here's what I've done so far:<br>&gt; &gt; add_definitions(-DV_FILM)<br>&gt; &gt; add_executable(hassel-film has-main.cpp)<br>&gt; &gt; remove_definitions(-DV_FILM)<br>&gt; &gt; add_definitions(-DV_DIGITAL)<br>&gt; &gt; add_executable(hassel-digital has-main.cpp)<br>&gt; &gt; What I want to do is after running cmake . and typing it make. I want to<br>&gt; &gt; generate two executable, one is hassel-film which is has-main.cpp compiled<br>&gt; &gt; with the flag -V_FILM<br>&gt; &gt; and the other one is hassel-digital which is compiled with the flag<br>&gt; &gt; -V_DIGITAL. How can I do this? The above code will compile with V_DIGITAL<br>&gt; &gt; flag, which is not what I want.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&gt; Date: Mon, 2 Nov 2009 22:12:26 -0800<br>&gt; &gt;&gt; From: tyler@cryptio.net<br>&gt; &gt;&gt; To: aditya15417@hotmail.com<br>&gt; &gt;&gt; CC: cmake@cmake.org<br>&gt; &gt;&gt; Subject: Re: [CMake] help me to resolve this issue<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; On Tue, Nov 03, 2009 at 05:54:16AM +0000, Alex H wrote:<br>&gt; &gt;&gt; &gt; if I have add_definition then the add_executable underneath it gets<br>&gt; &gt;&gt; &gt; compiled with the definition specified above it?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Why don't you try it and see? If it doesn't work, post your CMakeLists<br>&gt; &gt;&gt; and see if someone can help.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; tyler<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; New Windows 7: Simplify what you do everyday. Find the right PC for you.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Powered by www.kitware.com<br>&gt; &gt;<br>&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;<br>&gt; &gt; Please keep messages on-topic and check the CMake FAQ at:<br>&gt; &gt; http://www.cmake.org/Wiki/CMake_FAQ<br>&gt; &gt;<br>&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt; http://www.cmake.org/mailman/listinfo/cmake<br>&gt; &gt;<br></div>                                               <br /><hr />New Windows 7: Find the right PC for you. <a href='http://windows.microsoft.com/shop' target='_new'>Learn more.</a></body>
</html>