1 # Locate Xsd from code synthesis include paths and binary
2 # Xsd can be found at http://codesynthesis.com/products/xsd/
3 # Written by Frederic Heem, frederic.heem _at_ telsey.it
6 # XSD_INCLUDE_DIR, where to find elements.hxx, etc.
7 # XSD_EXECUTABLE, where is the xsd compiler
8 # XSD_FOUND, If false, don't try to use xsd
10 FIND_PATH( XSD_INCLUDE_DIR xsd/cxx/parser/elements.hxx
11 "/opt/local/xsd-3.3.0-i686-macosx/libxsd"
12 "C:/Programs/xsd-3.3.0/libxsd"
13 "C:/Program Files/CodeSynthesis XSD 3.2/include"
14 "C:/mingw/xsd-3.3.0-i686-windows/libxsd"
16 $ENV{CODESYNTH}/include
17 /usr/local/include /usr/include
22 SET( XSDCXX_FILENAME1 xsd-cxx.exe )
24 SET( XSDCXX_FILENAME1 xsdcxx )
25 SET( XSDCXX_FILENAME2 xsd )
28 FIND_PROGRAM( XSDCXX_EXECUTABLE
30 ${XSDCXX_FILENAME1} ${XSDCXX_FILENAME2}
32 "/opt/local/xsd-3.3.0-i686-macosx/bin"
33 "C:/Programs/xsd-3.3.0/bin"
34 "C:/mingw/xsd-3.3.0-i686-windows/bin"
35 "C:/Program Files/CodeSynthesis XSD 3.2/bin"
42 MESSAGE(STATUS ${XSDCXX_EXECUTABLE})
44 # if the include and the program are found then we have it
46 IF( XSDCXX_EXECUTABLE )
47 SET( XSD_FOUND "YES" )
48 ENDIF( XSDCXX_EXECUTABLE )
49 ENDIF( XSD_INCLUDE_DIR )