Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-09 Thread david_bjornbak
Yuri, Your suggestion is close to what I’m looking for. What I need is a easy way to not this as the “Startup Project” , I need to change the property of the INSTALL target itself. By default, the INSTALL target is not in the “all” or if you open the properties on the Solution , you will

Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-09 Thread david_bjornbak
I dug into CMake’s C++ code and found there’s a generic setting named EXCLUDE_FROM_ALL that most “targets” use to decide if a project should be under the default build but, there’s particular target type named “GLOBAL_TARGET” does use this setting and it’s always excluded from all. Based on

Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-08 Thread aaron . meadows
I had a hard time following these questions. It sounds like you're asking the following: 1) Can you set things up so that F7 does a full build and then automatically does the INSTALL target build? 2) Can you set things up so that you can build a sub project and have it install just

Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-08 Thread david_bjornbak
What I'm asking for is 1) or Can you set things up so that F7 does a full build and then automatically does the INSTALL target build? Developers in my team have expressed a need to hit F7 during they're day to day work and the resulting being the INSTALL target. This is not a general change I

Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-08 Thread aaron . meadows
I wonder if you could do something like: set_target_properties(INSTALL PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD 0 ) Aaron Meadows From: david_bjorn...@agilent.com [mailto:david_bjorn...@agilent.com] Sent: Wednesday, February 08, 2012 9:44 AM To: Meadows, Aaron C.; cmake@cmake.org

Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-08 Thread david_bjornbak
I've tried similar techniques with ADD_DEPENDENCIES to ALL_BUILD and the trouble with this, within a single project these targets are not generated yet and you would have to change CMake's C++ code to change this type of behavior. CMake Error at CMakeLists.txt:231 (set_target_properties):

Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-08 Thread aaron . meadows
Ah, that makes sense. Wonder how hard it would be to add a Pseudo-target to CMake for the targets it will build, and allow the scripts to set some properties on them which would be imported later as they are created... Aaron Meadows From: david_bjorn...@agilent.com

Re: [CMake] Under Visual Studio , allow developers to hit F7 to run the INSTALL target

2012-02-08 Thread Yuri Timenkov
I use a special macro for such purposes, something like this: Sub Install() Dim prj As Project Dim sb As SolutionBuild = DTE.Solution.SolutionBuild Dim prjs As Projects = DTE.Solution.Projects For Each prj In prjs If prj.Name = INSTALL Then