]> Creatis software - bbtk.git/blobdiff - kernel/cmake/BBTKWxWidgets.cmake
Modified GTK2 find mecanism for cmake > 2.4
[bbtk.git] / kernel / cmake / BBTKWxWidgets.cmake
index 94be3b283ff4ba9a2896644e2b811fea7f19673c..e1045903df49263053e6bb911d90eea149989e1d 100644 (file)
@@ -33,6 +33,9 @@ MACRO(BBTK_FIND_WXWIDGETS)
     # WX
     # LG : Do not force but use what is installed !
     # SET(wxWidgets_USE_LIBS base core gl)
+    # Can I require all my user to have the gl lib on linux, even if they do not really need it...
+    SET(WXGLCANVASLIBS "gl")
+
     FIND_PACKAGE( wxWidgets REQUIRED) 
     #
     IF(wxWidgets_FOUND)
@@ -61,6 +64,7 @@ MACRO(BBTK_USE_WXWIDGETS)
     LINK_DIRECTORIES( ${WXWIDGETS_LINK_DIRECTORIES} )
     SET(BBTK_WXWIDGETS_LIBRARIES
       ${WXWIDGETS_LIBRARIES}     
+      ${WXWIDGETS_LIBRARIES} wxmsw28d_aui      
       debug msvcrtd
       debug msvcprtd
       optimized msvcrt