Toutes les variables CMake
sont préfixés par wx
.
wxUSE_UNICODE:BOOL=ON
, wxBUILD_USE_STATIC_RUNTIME:BOOL=OFF
, wxUSE_EXCEPTIONS:BOOL=ON
, …
Lire le fichier build/cmake/toolkit.cmake
:
if(WIN32) set(wxDEFAULT_TOOLKIT msw) set(wxTOOLKIT_OPTIONS msw gtk2 gtk3 qt) set(wxPLATFORM WIN32) elseif(APPLE AND IPHONE) set(wxDEFAULT_TOOLKIT osx_iphone) set(wxTOOLKIT_OPTIONS osx_iphone) set(wxPLATFORM OSX) elseif(APPLE) set(wxDEFAULT_TOOLKIT osx_cocoa) set(wxTOOLKIT_OPTIONS osx_cocoa gtk2 gtk3 gtk4 qt) set(wxPLATFORM OSX) elseif(UNIX) set(wxDEFAULT_TOOLKIT gtk3) set(wxTOOLKIT_OPTIONS gtk2 gtk3 gtk4 motif qt) set(wxPLATFORM UNIX) else() message(FATAL_ERROR "Unsupported platform") endif()