Re: [CMake] Arbitrary order named arguments

2012-07-19 Thread Doug
Ah~ I saw http://www.cmake.org/Wiki/CMakeMacroParseArguments but I didn't realize it was an in-built feature now. That's great, thanks~ Cheers, Doug. On Fri, Jul 20, 2012 at 12:28 PM, Michael Jackson wrote: > include (CMakeParseArguments) > > function(BuildQtAppBundle) > set(options ) >

Re: [CMake] Arbitrary order named arguments

2012-07-19 Thread Michael Jackson
include (CMakeParseArguments) function(BuildQtAppBundle) set(options ) set(oneValueArgs TARGET DEBUG_EXTENSION ICON_FILE VERSION_MAJOR VERSION_MINOR VERSION_PATCH BINARY_DIR COMPONENT INSTALL_DEST PLUGIN_LIST_FILE) set(multiValueArgs SOURCES LINK_LIBRARIES LIB_SE

[CMake] Arbitrary order named arguments

2012-07-19 Thread Doug
There are some cute native functions that let you specify arguments in random order with named keys preceeding them, eg. execute_process(COMMAND blah WORKING_DIRECTORY blah2 OUTPUT_FILE x TIMEOUT 2) === execute_process(COMMAND blah WORKING_DIRECTORY blah2 TIMEOUT 2 OUTPUT_FILE x) I'm doing thi