[CMake] help me to resolve this issue

Alex H aditya15417 at hotmail.com
Tue Nov 3 23:21:50 EST 2009


But I have only one cpp file and I want it do have different properties...
What does the SSE_COMPILE_FLAGS do?





> Date: Tue, 3 Nov 2009 22:59:11 -0500
> Subject: Re: [CMake] help me to resolve this issue
> From: mike.jackson at bluequartz.net
> To: aditya15417 at hotmail.com
> 
> set_source_files_properties( has-main.cpp
>                         PROPERTIES  COMPILE_FLAGS ${SSE_COMPILE_FLAGS} )
> _________________________________________________________
> Mike Jackson                  mike.jackson at bluequartz.net
> BlueQuartz Software                    www.bluequartz.net
> Principal Software Engineer                  Dayton, Ohio
> 
> On Tue, Nov 3, 2009 at 10:40 PM, Alex H <aditya15417 at hotmail.com> wrote:
> > Okay here's what I've done so far:
> > add_definitions(-DV_FILM)
> > add_executable(hassel-film has-main.cpp)
> > remove_definitions(-DV_FILM)
> > add_definitions(-DV_DIGITAL)
> > add_executable(hassel-digital has-main.cpp)
> > 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
> > 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.
> >
> >
> >
> >
> >
> >
> >> Date: Mon, 2 Nov 2009 22:12:26 -0800
> >> From: tyler at cryptio.net
> >> To: aditya15417 at hotmail.com
> >> CC: cmake at cmake.org
> >> Subject: Re: [CMake] help me to resolve this issue
> >>
> >> On Tue, Nov 03, 2009 at 05:54:16AM +0000, Alex H wrote:
> >> > if I have add_definition then the add_executable underneath it gets
> >> > compiled with the definition specified above it?
> >>
> >> Why don't you try it and see? If it doesn't work, post your CMakeLists
> >> and see if someone can help.
> >>
> >> tyler
> >
> > ________________________________
> > New Windows 7: Simplify what you do everyday. Find the right PC for you.
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
> >
 		 	   		  
_________________________________________________________________
New Windows 7: Find the right PC for you. Learn more.
http://windows.microsoft.com/shop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091104/3c825dfd/attachment.htm>


More information about the CMake mailing list