:36 +0100
> Subject: Re: [CMake] add_executable with -D
> From: pgqui...@elpauer.org
> To: aditya15...@hotmail.com
> CC: cmake@cmake.org
>
> Hello,
>
> $ cmake --help-command IF
>
> if(expression)
> # then section.
> COMMAND1(ARGS ...)
> COMMAND2(ARGS ...)
>
Sorry what I was trying to ask is, how do I run CMake with an option that I
have defined in the option section ofCMakeLists.txt?
> Date: Sun, 1 Nov 2009 22:47:36 +0100
> Subject: Re: [CMake] add_executable with -D
> From: pgqui...@elpauer.org
> To: aditya15...@hotmail.com
On Sun, Nov 1, 2009 at 10:39 PM, Alex H wrote:
>
> How can I do an if else statement in CMake?? Do I need to use options?
>>
>
>
>
> From: mike.jack...@bluequartz.net
> To: aditya15...@hotmail.com
> Subject: Re: [CMake] add_executable
How can I do an if else statement in CMake?? Do I need to use options?
From: mike.jack...@bluequartz.net
To: aditya15...@hotmail.com
Subject: Re: [CMake] add_executable with -D
Date: Sun, 1 Nov 2009 13:59:15 -0500
CC: cmake@cmake.org
You need to use the add_defintions() command
Sent from
You need to use the add_defintions() command
Sent from my iPod
Mike Jackson
On Nov 1, 2009, at 13:12, Alex H wrote:
Usually using g++ I can do the following:
g++ -D DEBUG main.cpp
how can I add the similar function of -D DEBUG in CMake?
I tried to read the add_executable() command and it d
Usually using g++ I can do the following:
g++ -D DEBUG main.cpp
how can I add the similar function of -D DEBUG in CMake?
I tried to read the add_executable() command and it did not provide something
similar to this.. some guidelines are appreciated
__