Support WXQT in CMake

This commit is contained in:
Maarten Bent
2018-09-25 19:41:17 +02:00
parent 4c06c43f26
commit 1dfe088b4d
9 changed files with 60 additions and 13 deletions

View File

@@ -151,11 +151,21 @@ if(wxUSE_THREADS)
endif()
if(wxUSE_GUI)
if(WIN32 AND wxUSE_METAFILE)
if(WXMSW AND wxUSE_METAFILE)
# this one should probably be made separately configurable
set(wxUSE_ENH_METAFILE ON)
endif()
# WXQT checks
if(WXQT)
wx_option_force_value(wxUSE_WEBVIEW OFF)
wx_option_force_value(wxUSE_METAFILE OFF)
if(WIN32)
wx_option_force_value(wxUSE_ACCESSIBILITY OFF)
endif()
endif()
# extra dependencies
if(wxUSE_OPENGL)
find_package(OpenGL)
if(NOT OPENGL_FOUND)