UsewxWidgets¶
方便使用的 wxWidgets 函式庫的包含檔。
判斷是否已找到 wxWidgets,並設定適當的程式庫、包含目錄、旗標等。會呼叫 INCLUDE_DIRECTORIES 和 LINK_DIRECTORIES。
用法
# Note that for MinGW users the order of libs is important!
find_package(wxWidgets REQUIRED net gl core base)
include(${wxWidgets_USE_FILE})
# and for each of your dependent executable/library targets:
target_link_libraries(<YourTarget> ${wxWidgets_LIBRARIES})
已棄用
LINK_LIBRARIES is not called in favor of adding dependencies per target.
作者
Jan Woetzel <jw -at- mip.informatik.uni-kiel.de>