On 9. Sep, 2010, at 10:15 , Benjamin Schindler wrote:

> Hi
> 
> I've written a cmake script for the codesynthesis xsd compiler which
> works kindof similar to the qt scripts calling moc etc.
> The problem is, that I have no dependency checker. I'd need to parse the
> xsd asked for and put all included xsd's in to the dependency list. And
> this needs to be cross platform (so exec-program is not really an option...)
> 
> Is there a way in cmake to do that?
> 
> Thank you
> Benjamin Schindler

Only by modifying the CMake source code. Have a look at the Source/cmDepends* 
files to get an idea.

CMake already contains expat and wraps it in the cmXMLParser, so it should be 
pretty simple to extract the schemaLocation attributes. What will NOT be so 
simple is to resolve them (speaking XML catalogs), but you might decide to just 
skip URIs which are not local (file://) or relative if you don't expect them to 
change frequently.

Michael

--
There is always a well-known solution to every human problem -- neat, 
plausible, and wrong.
H. L. Mencken

Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to