[CMake] Xcode and Header Files

Bill Hoffman hoffman.mlist at gmail.com
Wed Apr 11 11:34:57 EDT 2007


Mike Jackson wrote:
> Well that was simple. One last idea. Is there a CMake Variable that 
> tells what generator is being used? I would like to test for Xcode and 
> then conditionally include the headers.
>
>  Also what are the side effects of adding headers to the ADD_LIBRARY 
> or ADD_EXECUTABLE? Does cmake just skip them?
You can just add them all the time.  The make generator will just ignore 
them.  In fact if there are any generated headers, you have to included 
them in the sources or the custom commands may not run.

-Bill



More information about the CMake mailing list