- # Search WXWIDGETS
-
- # WXWINDOWS_LIBRARY = full path to the wxWindows library and linker flags on unix
- # CMAKE_WX_CXX_FLAGS = compiler flags for building wxWindows
- # WXWINDOWS_INCLUDE_PATH = include path of wxWindows
- SET(WXWINDOWS_USE_GL 1)
-
- #wxWidgets build related stuff
- # DO NOT FORCE DEBUG LIBS !!
- SET(WXW_USE_DEBUG OFF)
- SET(WXW_USE_UNICODE OFF)
- SET(WXW_USE_SHARED ON)
- SET(WXW_USE_UNIV OFF)
- SET(WXW_USE_MONO OFF)
- SET(WXW_FILE_VERSION "28")
- SET(WXW_VERSION "2.8")
-
- #CMake Options
- # Why forcing verbosity ?
- # SET(CMAKE_VERBOSE_MAKEFILE TRUE)
-
- INCLUDE (${CREA_CMAKE_DIR}/FindWxWidgetsWin32.cmake)
- #
+ if (DEFINED CREA_USE_MXE)
+ SET(WXGLCANVASLIBS "gl")
+ SET(WXAUILIBS "aui")
+ # LG : These options should be set by the user at top level of crea
+ FIND_PACKAGE(wxWidgets COMPONENTS base core adv html
+ ${WXAUILIBS}
+ ${WXGLCANVASLIBS})
+ IF(wxWidgets_FOUND)
+ MESSAGE ( STATUS "=======================================")
+ MESSAGE ( STATUS "Looking for wxWidgets... found ${wxWidgets_CONFIG_EXECUTABLE}")
+ MESSAGE(STATUS "wxWidgets_INCLUDE_DIRS = ${wxWidgets_INCLUDE_DIRS}")
+ ELSE(wxWidgets_FOUND)
+ MESSAGE ( ERROR "EED cmake ERROR : wxWidgets not found")
+ ENDIF(wxWidgets_FOUND)
+ ELSE(DEFINED CREA_USE_MXE)
+ # Search WXWIDGETS
+
+ # WXWINDOWS_LIBRARY = full path to the wxWindows library and linker flags on unix
+ # CMAKE_WX_CXX_FLAGS = compiler flags for building wxWindows
+ # WXWINDOWS_INCLUDE_PATH = include path of wxWindows
+ SET(WXWINDOWS_USE_GL 1)
+
+ #wxWidgets build related stuff
+ # DO NOT FORCE DEBUG LIBS !!
+ SET(WXW_USE_DEBUG OFF)
+ SET(WXW_USE_UNICODE OFF)
+ SET(WXW_USE_SHARED ON)
+ SET(WXW_USE_UNIV OFF)
+ SET(WXW_USE_MONO OFF)
+ SET(WXW_FILE_VERSION "28")
+ SET(WXW_VERSION "2.8")
+
+ #CMake Options
+ # Why forcing verbosity ?
+ # SET(CMAKE_VERBOSE_MAKEFILE TRUE)
+
+ INCLUDE (${CREA_CMAKE_DIR}/FindWxWidgetsWin32.cmake)
+ #
+ ENDIF (DEFINED CREA_USE_MXE)