[CMake] Adding all object files as target

Sachin Gaikwad sachin.kernel at gmail.com
Fri Dec 11 14:27:24 EST 2015


Hi all,

In GNU make, I can easily do this: "make foo.o" if I have foo.cc file to
build and this will only compile foo.cc and create foo.o. This behavior is
default one i.e. all object files are added as targets in Makefile.

How do I get same behavior with cmake?

Sachin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151212/6fe490da/attachment.html>


More information about the CMake mailing list