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 my iPodMike Jackson
On Nov 1, 2009, at 13:12, Alex H <aditya15...@hotmail.com> 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 did not provide something 
similar to this.. some guidelines are appreciated


                                          
Chat online and in real-time with friends and family! Windows Live Messenger
_______________________________________________
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! Get Windows Live FREE.
http://www.get.live.com/wl/all
_______________________________________________
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

Reply via email to