<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>> Date: Tue, 3 Nov 2009 22:59:11 -0500<br>> Subject: Re: [CMake] help me to resolve this issue<br>> From: mike.jackson@bluequartz.net<br>> To: aditya15417@hotmail.com<br>> <br>> set_source_files_properties( has-main.cpp<br>> PROPERTIES COMPILE_FLAGS ${SSE_COMPILE_FLAGS} )<br>> _________________________________________________________<br>> Mike Jackson mike.jackson@bluequartz.net<br>> BlueQuartz Software www.bluequartz.net<br>> Principal Software Engineer Dayton, Ohio<br>> <br>> On Tue, Nov 3, 2009 at 10:40 PM, Alex H <aditya15417@hotmail.com> wrote:<br>> > Okay here's what I've done so far:<br>> > add_definitions(-DV_FILM)<br>> > add_executable(hassel-film has-main.cpp)<br>> > remove_definitions(-DV_FILM)<br>> > add_definitions(-DV_DIGITAL)<br>> > add_executable(hassel-digital has-main.cpp)<br>> > What I want to do is after running cmake . and typing it make. I want to<br>> > generate two executable, one is hassel-film which is has-main.cpp compiled<br>> > with the flag -V_FILM<br>> > and the other one is hassel-digital which is compiled with the flag<br>> > -V_DIGITAL. How can I do this? The above code will compile with V_DIGITAL<br>> > flag, which is not what I want.<br>> ><br>> ><br>> ><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<br>> >> > 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>> > ________________________________<br>> > New Windows 7: Simplify what you do everyday. Find the right PC for you.<br>> > _______________________________________________<br>> > Powered by www.kitware.com<br>> ><br>> > Visit other Kitware open-source projects at<br>> > http://www.kitware.com/opensource/opensource.html<br>> ><br>> > Please keep messages on-topic and check the CMake FAQ at:<br>> > http://www.cmake.org/Wiki/CMake_FAQ<br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > http://www.cmake.org/mailman/listinfo/cmake<br>> ><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>