[CMake] Excluding source files for certain build types

Johannes Brunen jbrunen at datasolid.de
Wed Nov 18 08:50:55 EST 2009


Hello,

I have a project which builds an executable. I'm using the Visual Studio
9 2008 generator. Now, I need to include some object files to the
release configuration only. These objects are not build by myself but
readily compiled by some third party tool. Before using CMake I did add
these objects to the Solution Explorer of the IDE and excluded them from
the debug build in the properties settings.

Is there a way I could achieve  this with CMake? I found the
HEADER_FILE_ONLY source file property but don't know how to apply it
solely to the debug configuration.

Any help is very much appreciated.

Best,
Johannes



____________
Virus checked by G DATA AntiVirusKit
Version: AVF 19.626 from 17.11.2009
Virus news: www.antiviruslab.com


More information about the CMake mailing list