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
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
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
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
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
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):
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
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