[CMake] project() command and make targets
Bill Hoffman
bill.hoffman at kitware.com
Tue Sep 11 22:22:11 EDT 2012
On 9/11/2012 7:17 PM, Robert Dailey wrote:
> For some reason I was expecting names specified in project() command
> to become a custom target that I can invoke with nmake on Windows, and
> it would build any projects under it (this is especially useful for
> multiple executables, such as maybe a suite of tools. The only other
> alternative I see is to invoke nmake for each executable one by one,
> or create a new custom target that depends on all of those
> executables, and invoke that instead.
>
> Is there a reason why I can't invoke my projects (defined with
> project() command) as targets with nmake?
With the makefiles you can just cd into the directory and type nmake or
make, and it will build those targets (and ones they depend on).
-Bill
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
More information about the CMake
mailing list