Hi,

I just needed 'run as root' and default run arguments. I have just had a look 
at adding multiple targets to a xcscheme and it looks no more complicated.

I was just generating the "BlueprintIdentifier" at random with "string(RANDOM 
LENGTH 24 ALPHABET "0123456789ABCDEF" MACOSX_SCHEME_BLUEPRINT_UUID)". I see now 
that they are meant to match those in the XCode project. I have made another 
change 
(https://github.com/hm1992/CMake/commit/0085ab7932001475c7cc367112e35db5b15679c6)
 which fixes the GUID problem.

Group schemes could be made with an add_to_xcode_shared_scheme function maybe?

Harry



Harry Mallon

CODEX | Software Engineer

60 Poland Street | London | England | W1F 7NT

E ha...@codexdigital.com<mailto:ha...@codexdigital.com> | T +44 203 7000 
989<callto:+44%20203%207000%20989>

Website<www.codexdigital.com> | Facebook<https://www.facebook.com/codexdigital> 
| Twitter<http://twitter.com/codexdigital>

[http://www.codexdigital.com/?action=asset&id=83095F5A-2233-47F5-9598-19228D7E37AE]<http://www.codexdigital.com>

On 31 Mar 2016, at 17:48, Gregor Jasny 
<gja...@googlemail.com<mailto:gja...@googlemail.com>> wrote:

Hello,

On 31/03/16 16:30, Harry Mallon wrote:
This became an annoyance in our Cmake build system so here is a barebones 
xcscheme creator.
https://github.com/hm1992/CMake/commit/5345881861a4b510d3a3283825584ec90f8d2061

Current situation:
* It seems to work for the executable targets we use in the office.
* It only supports command line args and whether to run as root or not (but 
this was all we needed for now).

If you have any use for it, feel free to use it. If it could be useful as a 
basis for a more integrated module then that would also be fine.

Thank you for working on this. Schema creation is a longstanding user
request? Could you modify your generator so that one can combine
multiple targets to into one schema? Or will that require knowledge of
the target UUID from the xcodeproj file?

Some time ago I looked into adding a schema generator purely implemented
as a CMake module but came to the conclusion that it is not a viable
approach without CMake modifications. Especially the unstable UUIDs
across project re-generation gave me some headaches. So I decided that a
schema generator would best fit best within the Xcode generator.

Now there's the first task defining requirements and creating an useful
and extensible CMake language API for schema generation.

Thanks,
Gregor


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to