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)
>   list(APPEND MySources files/for/b ...)
> endif()
> 
> add_executable(MyExec ${MySources})

Yes, that's the way t do it.

> I have never used assembler files, so I can't comment there,

Did you enable the ASM language ?

> and I don't think there's an option for better GUI grouping than string
> prefixes.

Yes, they are grouped by prefixes in their name.

Alex
--

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