lua: added EVT_MENU_LONG on Taranis (#3991)
[opentx.git] / cmake / FindXsd.cmake
blob1e50f6269c03a3a936be27f98d4f1f75b170cf1d
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
5 # This module defines
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"
15   $ENV{XSDDIR}/include
16   $ENV{CODESYNTH}/include
17   /usr/local/include /usr/include
18   $ENV{XSDDIR}/libxsd
21 IF( WIN32 )
22   SET( XSDCXX_FILENAME1 xsd-cxx.exe )
23 ELSE( )
24   SET( XSDCXX_FILENAME1 xsdcxx )
25   SET( XSDCXX_FILENAME2 xsd )
26 ENDIF( )
28 FIND_PROGRAM( XSDCXX_EXECUTABLE
29   NAMES
30     ${XSDCXX_FILENAME1} ${XSDCXX_FILENAME2}
31   PATHS
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"
36     $ENV{XSDDIR}/bin
37     /usr/local/bin
38     /usr/bin
39     $ENV{XSDDIR}/xsd
42 MESSAGE(STATUS ${XSDCXX_EXECUTABLE})
44 # if the include and the program are found then we have it
45 IF( XSD_INCLUDE_DIR )
46   IF( XSDCXX_EXECUTABLE )
47     SET( XSD_FOUND "YES" )
48   ENDIF( XSDCXX_EXECUTABLE )
49 ENDIF( XSD_INCLUDE_DIR )
51 MARK_AS_ADVANCED(
52   XSD_INCLUDE_DIR
53   XSDCXX_EXECUTABLE