My goal would be to have one target for the (main) executable itself depending on all source files (grouped in subdirectories) and one target to simply compile the source files in each individual subdirectory. (without linking or any other rules). In order to do so, i would need to create the objects of all needed targes in one common directory. I'm actually having a similar problem when trying to setup several language dependent executable targets that should use a unique set of oebjcts because only the resources are different for each language. Thank you, Dieter
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brandon J. Van Every Sent: Friday, April 13, 2007 7:52 PM To: cmake Subject: Re: [CMake] Convince Cmake to use a compile rule without having aLIBRARY or EXECUTABLE target http://www.cmake.org/Wiki/CMake_Useful_Variables has variables for putting executable and library files in a common directory, but I don't see anything for object files. Do you actually need object files in a common directory? Why? Cheers, Brandon Van Every d.1234567890 wrote: In our (relatively large) project, we sometimes "just" want to compile (check for syntax) a part (typically one directory) of the complete project. This very often saves a lot of time just to figure out that a small error fails the complete project to rebuild. Another option I hat tried, was to create several (library) targets that would be used to build the individual source directories but this failed because I did not find a way to convince CMake to put all objects (I've also ask on this list for help on this) in the main target build directory. Thank you, Dieter Original Message ----------------------- dieter oberkofler wrote: Is is somehow possible to convince CMake to compile (use the build-in c/c++ compile rules and no explicit custom command) without having specified a LIBRARY or EXECUTABLE to be build? What would you be trying to compile? Cheers, Brandon Van Every _______________________________________________ CMake mailing list [EMAIL PROTECTED] http://www.cmake.org/mailman/listinfo/cmake _______________________________________________ CMake mailing list [EMAIL PROTECTED] http://www.cmake.org/mailman/listinfo/cmake _______________________________________________ CMake mailing list [EMAIL PROTECTED] http://www.cmake.org/mailman/listinfo/cmake
