[CMake] help me to resolve this issue
Alex H
aditya15417 at hotmail.com
Tue Nov 3 22:40:15 EST 2009
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.
http://windows.microsoft.com/shop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091104/bf9bfaf3/attachment.htm>
More information about the CMake
mailing list