UsewxWidgets¶
用於使用 wxWidgets 函式庫的便利包含。
確定 wxWidgets 是否已找到,並設定適當的 libs、incdirs、旗標等等。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>