Added CMake find modules, fixing build on FreeBSD.

This commit is contained in:
Håvard Pettersson 2015-01-30 13:54:25 +00:00
parent 37e3b66691
commit bf28ab37be
3 changed files with 21 additions and 2 deletions

4
cmake/FindWeeChat.cmake Normal file
View file

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