[CMake] setting a VisualStudio 7.1 project label

Michael T. Wagner mtw at shared-reality.com
Tue Nov 15 13:05:01 EST 2005


Hi there,

I'm using cmake to generate Visual Studio 7.1 solution and project file
which works really good.

If I define a target like ADD_LIBRARY(osg ...) the generated project
file is osg.vcproj and the project shows up as "osg" in the solution.

What I'd like to do is to give that project a more descriptive label
like "Core osg" without changing the name of the vcproj file or
affecting the build otherwise.

It works for me if I write

SET_TARGET_PROPERTIES(osg PROPERTIES PROJECT_LABEL "Core osg")

in the CMakeLists and modify two lines in
LocalVisualStudio7Generator.cxx to check for the "PROJECT_LABEL"
property when writing the vcproj File.

Could u guys consider to add that  to cvs ? I've put the file in
question to http://www.sharedreality.de/cmLocalVisualStudio7Generator.cxx

Thanks,

Michael








More information about the CMake mailing list