UsewxWidgets¶
包含用于使用 wxWidgets 库的便捷内容。
确定是否已找到 wxWidgets 并设置适当的库、incdir、标志等。调用 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>