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.
範例¶
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)