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: ty...@cryptio.net
> To: aditya15...@hotmail.com
> CC: cmake@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
_______________________________________________
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