]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/include/Modules/FindwxGlade.cmake
creaMaracasVisu Library
[creaMaracasVisu.git] / lib / maracasVisuLib / include / Modules / FindwxGlade.cmake
1 #
2 # This module finds if WXGLADE is installed and determines where the
3 # include files and libraries are. It also determines what the name of
4 # the library is. This code sets the following variables:
5 #
6 #  WXGLADE_FOUND        = system has WXGLADE and it should be used
7 #  WXGLADE_EXECUTABLE  =  path to the program itself
8
9 IF(WIN32)
10 IF(NOT UNIX)
11   SET (WXGLADE_POSSIBLE_LIB_PATHS
12     $ENV{WXGLADE}
13     "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\wxGlade_is1;Inno Setup: App Path]"
14   )
15
16   FIND_PROGRAM(WXGLADE_EXECUTABLE 
17     wxglade
18     ${WXGLADE_POSSIBLE_LIB_PATHS}
19   )
20
21 ENDIF(NOT UNIX)
22 ENDIF(WIN32)
23
24 IF(UNIX)
25
26   #rpm put a /usr/bin/wxglade which link to:
27   #/usr/lib/wxGlade/wxglade.py
28
29 #  FIND_PROGRAM(WXGLADE_EXECUTABLE 
30 #    wxglade
31 #    /usr/bin
32 #  )
33
34   FIND_PROGRAM(WXGLADE_EXECUTABLE 
35     wxglade.py
36     /usr/lib/wxGlade
37     /usr/local/lib/wxGlade
38   )
39
40   FIND_PROGRAM(XRC2WXG_EXECUTABLE 
41     xrc2wxg.py
42     /usr/lib/wxGlade
43     /usr/local/lib/wxGlade
44   )
45
46 ENDIF(UNIX)  
47
48 MARK_AS_ADVANCED(
49   WXGLADE_EXECUTABLE 
50 )
51
52 IF(WXGLADE_EXECUTABLE)
53     SET(WXGLADE_FOUND 1)
54 ENDIF(WXGLADE_EXECUTABLE)