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
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
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
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