[CMake] Exclude file from build on a given target

Daniel Tavares daniel.tavares at slipg8.com
Tue May 26 17:52:58 EDT 2009


Is it possible to exclude a file from build for a specific build target?
As far as I could read on the documentation and discussion threads,
setting HEADER_FILE_ONLY to TRUE changes the file property for all
targets.

 

I'm converting a Visual Studio 2005 project to CMake and this project
excludes a couple of files from the build depending on the build target.

 

 

Thanks,

Daniel

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090526/caa6f202/attachment.htm>


More information about the CMake mailing list