[CMake] Adding all object files as target
Nils Gladitz
nilsgladitz at gmail.com
Fri Dec 11 14:39:19 EST 2015
On 11.12.2015 20:27, Sachin Gaikwad wrote:
>
> 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?
>
That should already be the default with CMake.
"make help" should list these targets.
Nils
More information about the CMake
mailing list