I try to transfer into some CMake program and there is a function generating header files from the xml.
Makefile.am
adaptor_glue.hpp: dbus_introspect.xml
$(DBUSXX_XML2CPP) '$<' --adaptor='$@'
proxy_glue.hpp: dbus_introspect.xml
$(DBUSXX_XML2CPP) '$<' --proxy='$@'
configure
DBUSXX_XML2CPP='$(top_builddir)/dbus-c++/tools/dbusxx-xml2cpp'
How I can do it on cmake?
The right way is: