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

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

2012-05-28 Thread Alexander Neundorf
On Monday 28 May 2012, Petr Kmoch wrote: > Hi Johannes, > > 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) > lis

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

2012-05-28 Thread Petr Kmoch
Hi Johannes, 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(APPEND MySources files/for/b ...) endif() add_executable(MyExec ${MySo

[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