Re: [CMake] Adding all object files as target

2015-12-11 Thread Nils Gladitz
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] Adding all object files as target

2015-12-11 Thread Sachin Gaikwad
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 -- Powered by www.kitwar