1 #=======================================================================
3 # sets BBTK_WXWIDGETS_FOUND to true if found
4 #=======================================================================
5 MACRO(BBTK_FIND_WXWIDGETS)
9 # WXWINDOWS_LIBRARY = full path to the wxWindows library and linker flags on unix
10 # CMAKE_WX_CXX_FLAGS = compiler flags for building wxWindows
11 # WXWINDOWS_INCLUDE_PATH = include path of wxWindows
12 SET(WXWINDOWS_USE_GL 1)
14 #wxWidgets build related stuff
16 SET(WXW_USE_UNICODE OFF)
17 SET(WXW_USE_SHARED ON)
20 SET(WXW_FILE_VERSION "28")
21 SET(WXW_VERSION "2.8")
24 # Why forcing verbosity ?
25 # SET(CMAKE_VERBOSE_MAKEFILE TRUE)
27 INCLUDE (${BBTK_CMAKE_DIR}/BBTKFindWxWidgetsWIN32.cmake)
32 INCLUDE(${BBTK_CMAKE_DIR}/BBTKFindGTK2.cmake)
34 # LG : Do not force but use what is installed !
35 # SET(wxWidgets_USE_LIBS base core gl)
36 FIND_PACKAGE( wxWidgets REQUIRED)
39 MESSAGE(STATUS "Looking for wxWidgets... found ${wxWidgets_CONFIG_EXECUTABLE}")
40 ENDIF(wxWidgets_FOUND)
45 ENDMACRO(BBTK_FIND_WXWIDGETS)
46 #=======================================================================
48 #=======================================================================
49 MACRO(BBTK_USE_WXWIDGETS)
50 # Preprocessor settings
51 ADD_DEF( _USE_WXWIDGETS_ )
55 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}${WXWIDGETS_CXX_FLAGS}")
56 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}${WXWIDGETS_EXE_LINKER_FLAGS}")
58 ADD_DEFINITIONS( ${WXWIDGETS_DEFINITIONS} )
60 INCLUDE_DIRECTORIES(${WXWIDGETS_INCLUDE_DIR})
61 LINK_DIRECTORIES( ${WXWIDGETS_LINK_DIRECTORIES} )
62 SET(BBTK_WXWIDGETS_LIBRARIES
63 ${WXWIDGETS_LIBRARIES}
64 ${WXWIDGETS_LIBRARIES} wxmsw28d_aui
72 INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS})
73 LINK_DIRECTORIES(${GTK2_LIBRARY_DIRS})
74 LINK_LIBRARIES(${GTK2_LIBRARIES})
76 INCLUDE( ${wxWidgets_USE_FILE} )
77 MARK_AS_ADVANCED(wxWidgets_CONFIG_EXECUTABLE)
78 SET(BBTK_WXWIDGETS_LIBRARIES
80 ${wxWidgets_LIBRARIES}
83 ENDMACRO(BBTK_USE_WXWIDGETS)
84 #=======================================================================