Use_wxWindows¶
自 2.8.10 版本弃用: Use find_package(wxWidgets)
instead.
This convenience include finds if wxWindows library is installed and sets the appropriate libraries, include directories, flags, etc.
Examples¶
Include Use_wxWindows
module in project's CMakeLists.txt
:
# CMakeLists.txt
include(Use_wxWindows)
When the GL support is required, set WXWINDOWS_USE_GL
before including
this module:
set(WXWINDOWS_USE_GL ON)
include(Use_wxWindows)