[Cmake] Visual Studio: setting target names for build types / library dependencies

Brad King brad.king at kitware.com
Wed, 21 Apr 2004 14:33:50 -0400


Stefan Kowski wrote:
> Hi,
> 
> I submitted a patch in the bug tracker to support setting target names in
> the Visual Studio 6 generator. So different names can be set for debug and
> release targets (I think I read this requirement some time ago on this list;
> if you are interested, see bug #731).
> 
> I tried including an external Visual Studio 6 project using:
> 
> INCLUDE_EXTERNAL_MSPROJECT(libname /lib/path/libname.dsp)
> 
> This works fine, the project shows up in the workspace. But how do I add
> this project as a prerequisite of another, i.e. an executable?

This may work:

ADD_DEPENDENCIES(myexe libname)

-Brad