[cmake-developers] Visual Studio Add Custom Target marked Build

J Decker d3ck0r at gmail.com
Wed Jun 13 12:02:55 EDT 2012


how to add a custom target which is marked as build in a visual studio
solution output?

I really am trying to get away from devenv, when using devenv, it will
build the INSTALL target even though it's not marked for build.  But
MSBuild isn't so gracious.... so I added

 ADD_CUSTOM_TARGET( install_foo )
 ADD_DEPENDENCIES( install_foo INSTALL )

but target 'install_foo' also isn't marked to be built.



More information about the cmake-developers mailing list