Use_wxWindows¶
自版本 2.8.10 起已棄用:請改用 find_package(wxWidgets)
和 include(${wxWidgets_USE_FILE})
。
這個方便的包含檔會尋找是否已安裝 wxWindows,並設定適當的 libs、incdirs、旗標等。作者 Jan Woetzel <jw -at- mip.informatik.uni-kiel.de> (07/2003)
用法
just include Use_wxWindows.cmake
in your projects CMakeLists.txt
include( ${CMAKE_MODULE_PATH}/Use_wxWindows.cmake)
if you are sure you need GL then
set(WXWINDOWS_USE_GL 1)
*before* you include this file.