[CMake] How to using 'conditional statements at generate time'?

Yuchen Deng loaden at gmail.com
Fri Mar 22 08:53:38 EDT 2013


hi, there!
I was reading the release log in here:
http://www.kitware.com/news/home/browse/CMake?2012_11_07&CMake+2.8.10+Just+Released
Add see the parts:

> Generator expressions, which are used to introduce conditional statements
> at generate time rather than at CMake compile time, are now available in
> more contexts, *notably in the INCLUDE_DIRECTORIES and
> COMPILE_DEFINITIONS target properties.* There are also new generator
> expressions available in the 2.8.10 release.

In many times, I have to add more target in one CMakeLists.txt.

My question:
How to use for INCLUDE_DIRECTORIES and COMPILE_DEFINITIONS target
properties ?
Any examples? tests? or docs?
Thanks!

-- 
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130322/9f7512e8/attachment.htm>


More information about the CMake mailing list