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(APPEND MySources files/for/b ...)
>> endif()
>>
>> add_executable(MyExec ${MySources})
> 
> Yes, that's the way t do it.

Perfect, works nicely.

>> I have never used assembler files, so I can't comment there,
> 
> Did you enable the ASM language ?

I had not. :-/

Thank you two very much!
Best regards,
Joe
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to