[CMake] Generating source file one step before linking

2012-06-14 Thread Johannes Bauer
Dear list, I'd like to know if the following is possible: in my old buildsystem (that I'm trying to convert to cmake) there is a script which runs just before the linking stage. It examines the created objects and then creates a source-file which needs to be linked in. The way this was done before

Re: [CMake] Selectively adding source files and compiling assembly sources

2012-05-28 Thread Johannes Bauer
On 28.05.2012 11:34, Alexander Neundorf wrote: >> the only solution I can think of is something like: >> >> # >> option(WITH_A ...) >> option(WITH_B ...) >> >> set(MySources always/present/files ...) >> >> if(WITH_A) >> list(APPEND MySources files/for/a ...) >> endif() >> >> if(WITH_B) >> list

[CMake] Selectively adding source files and compiling assembly sources

2012-05-27 Thread Johannes Bauer
Hi list, I'm a total beginner to CMake as a developer (although I've used it in the past for other projects before). Now I'm starting by converting a rather large Automake-Project to CMake. I'm doing it from scratch. In the project, executables and a shared library are created from the same objec