| 54 | |
| 55 | # experimental lines building an XSD's hello example |
| 56 | |
| 57 | add_executable (test_xsd_hello test_xsd_hello.cxx hello-pskel.hxx hello-pskel.cxx) |
| 58 | target_link_libraries (test_xsd_hello ${BdmLibs} ${XERCES_LIBRARIES} ) |
| 59 | SET(XSD_ARGS "cxx-parser") |
| 60 | ADD_CUSTOM_COMMAND( |
| 61 | OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hello-pskel.hxx ${CMAKE_CURRENT_BINARY_DIR}/hello-pskel.cxx |
| 62 | COMMAND ${XSD_EXECUTABLE} |
| 63 | ARGS ${XSD_ARGS} ${CMAKE_CURRENT_SOURCE_DIR}/hello.xsd |
| 64 | DEPENDS test_xsd_hello |
| 65 | MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/hello.xsd |
| 66 | ) |
| 67 | |
| 68 | |