Improve CMake find modules.

This adds the possibility for Tox modules like AV to be optional.
This commit is contained in:
Håvard Pettersson 2015-09-02 22:34:10 +02:00
parent 210a644c9d
commit 7b9f8a48fd
3 changed files with 40 additions and 13 deletions

View file

@ -1,4 +1,4 @@
find_path(WEECHAT_INCLUDE_DIR weechat/weechat-plugin.h)
find_path(WeeChat_INCLUDE_DIRS weechat/weechat-plugin.h)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WeeChat DEFAULT_MSG WEECHAT_INCLUDE_DIR)
find_package_handle_standard_args(WeeChat REQUIRED_VARS WeeChat_INCLUDE_DIRS)