]> Creatis software - crea.git/blobdiff - cmake/CREAMacro_FindAndUseWxWidgets.cmake
#3180 crea Feature New Normal Future - Set wx-config for wxWidgets 2.8
[crea.git] / cmake / CREAMacro_FindAndUseWxWidgets.cmake
index 6783023b8ba5e5fbd409383d080f36c105ab0e52..5a765e64b5ec41139ad860a21009f54fbd3090dd 100644 (file)
@@ -3,6 +3,8 @@
 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
 #                        pour la Santé)
 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+# Previous Authors : Laurent Guigues, Jean-Pierre Roux
+# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
 #
 #  This software is governed by the CeCILL-B license under French law and 
 #  abiding by the rules of distribution of free software. You can  use, 
@@ -52,6 +54,10 @@ MACRO(CREA_FIND_WXWIDGETS)
     #
   
   ELSE(WIN32)
+      MESSAGE ( "===============Manual wx-config 2 EED =======================")
+      SET(wxWidgets_CONFIG_EXECUTABLE /usr/bin/wx-config-2.0 CACHE STRING wxWidgets_CONFIG_EXECUTABLE FORCE)
+         SET(wxWidgets_wxrc_EXECUTABLE /usr/bin/wxrc-2.8 CACHE STRING wxWidgets_wxrc_EXECUTABLE FORCE)
+
     IF(NOT wxWidgets_FOUND)
     # CMake 2.6:
     # technically those packages are not required 
@@ -71,6 +77,7 @@ MACRO(CREA_FIND_WXWIDGETS)
     IF(wxWidgets_FOUND)
       MESSAGE ( STATUS "=======================================")
       MESSAGE ( STATUS "Looking for wxWidgets... found ${wxWidgets_CONFIG_EXECUTABLE}")
+
     ENDIF(wxWidgets_FOUND)
     ENDIF(NOT wxWidgets_FOUND)
   ENDIF(WIN32)
@@ -116,6 +123,7 @@ MACRO(CREA_USE_WXWIDGETS)
 #    INCLUDE( ${GTK_USE_FILE} )
     INCLUDE( ${wxWidgets_USE_FILE} )
     MARK_AS_ADVANCED(wxWidgets_CONFIG_EXECUTABLE)
+
     SET(WXWIDGETS_LIBRARIES
       ${GTK2_LIBRARIES}
       #${GTK_LIBRARIES}