[CMake] More problems with list()...

Robert Dailey rcdailey at gmail.com
Wed Dec 3 12:23:01 EST 2008


On Wed, Dec 3, 2008 at 11:05 AM, Michael Jackson <
mike.jackson at bluequartz.net> wrote:

> Working from some of the Boost CMake implementations if you are trying to
> create macros that take any number of arguments with some of them being
> optional then here is some code that you might be interested in.
>
> https://svn.boost.org/trac/boost/wiki/CMakeLibraryProject
>
> <snip>
>
> #----- And Now finally your macro can use it like the following:
>
> <snip>
>
>
> macro(library_component project_name)
>
> #--- and you should be able to call it like this:
> library_component(MyNewLibrary DEPENDENCIES item1)
> library_component(MyOtherLibrary DEPENDENCIES item1 item2 SOME_OPTION)


Thanks Michael! This is great stuff and will help me simplify things.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081203/667d361a/attachment.htm>


More information about the CMake mailing list