Sure, just use add_custom_target without the "ALL" argument. If you don't use "ALL", then the project is completely disconnected from ALL_BUILD and everything else, and will only be triggered when you explicitly build that target/project.
HTH, David On Wed, Apr 4, 2012 at 12:53 PM, Robert Dailey <rcdailey.li...@gmail.com> wrote: > Hi, > > I have a custom target that just runs some commands that have nothing to do > with building source. For convenience, when generating visual studio > projects, I'd like for that target to be included in the SLN generated by > project() but I don't want to make it a dependency, since that would force > it to build when I build any other project in the solution (I think). > > Is there a way to make a vcproj be included in a sln without it building as > part of the dependency chain? > > Thanks in advance. > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake