Add support for GTK4 to CMake build too

Closes https://github.com/wxWidgets/wxWidgets/pull/1643
This commit is contained in:
wangqr
2019-11-08 14:12:26 +08:00
committed by Vadim Zeitlin
parent c433d3d0fd
commit 46a94c2b48
3 changed files with 60 additions and 6 deletions

View File

@@ -24,11 +24,11 @@ elseif(APPLE AND IPHONE)
set(wxPLATFORM OSX)
elseif(APPLE)
set(wxDEFAULT_TOOLKIT osx_cocoa)
set(wxTOOLKIT_OPTIONS osx_cocoa gtk2 gtk3 qt)
set(wxTOOLKIT_OPTIONS osx_cocoa gtk2 gtk3 gtk4 qt)
set(wxPLATFORM OSX)
elseif(UNIX)
set(wxDEFAULT_TOOLKIT gtk2)
set(wxTOOLKIT_OPTIONS gtk2 gtk3 motif qt)
set(wxTOOLKIT_OPTIONS gtk2 gtk3 gtk4 motif qt)
set(wxPLATFORM UNIX)
else()
message(FATAL_ERROR "Unsupported platform")
@@ -72,7 +72,9 @@ if(UNIX AND NOT APPLE AND NOT WIN32)
endif()
if(WXGTK)
if(WXGTK3)
if(WXGTK4)
set(gtk_lib GTK4)
elseif(WXGTK3)
set(gtk_lib GTK3)
elseif(WXGTK2)
set(gtk_lib GTK2)