[CMake] Setting up command line arguments on generated executables

Michael Wild themiwi at gmail.com
Mon Dec 20 09:47:03 EST 2010


On 12/20/2010 03:34 PM, Alessandro Carpi wrote:
> Hi there,
> 
> I am using cmake to generate Xcode projects starting from the usual
> CMakeLists.txt
> 
> I often modify CMakeLists.txt to add some source, so I have to re-generate
> the whole project using cmake <path> -G Xcode, but everytime I have to
> manually set up the executable command line arguments from Xcode.
> 
> Is there a declaration to add in the CMakeLists.txt in order to generate a
> project that has executables arguments already defined ?
> 
> Thank you very much,
> 
> --
> Alessandro Carpi


CMake re-runs itself if you modify the CMakeLists.txt files. Just hit
the build button...

Michael



More information about the CMake mailing list