On Wed, Dec 3, 2008 at 11:05 AM, Michael Jackson < [EMAIL PROTECTED]> 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.
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake