[Cmake] exclude file from build

Brad King brad.king at kitware.com
Tue Aug 3 17:53:03 EDT 2004


David Somers wrote:
> I've just started playing with cmake.
> 
> Is there a way to get cmake to generate a VC6 project file where some of the
> files have the 'exclude file from build' attribute set?

No, but files with extensions like ".txt" that do not mean anything to 
CMake or Visual Studio can be included in the project file with no ill 
effects.  We can add a source file property to cause this behavior:

SET_SOURCE_FILES_PROPERTIES(foo.xyz PROPERTIES EXCLUDE_FROM_BUILD 1)

Please add this as a feature request here:

http://www.cmake.org/Bug

Thanks,
-Brad


More information about the Cmake mailing list