Added CMake find modules, fixing build on FreeBSD.
This commit is contained in:
parent
37e3b66691
commit
bf28ab37be
3 changed files with 21 additions and 2 deletions
8
cmake/FindTox.cmake
Normal file
8
cmake/FindTox.cmake
Normal file
|
@ -0,0 +1,8 @@
|
|||
find_path(TOX_INCLUDE_DIR tox/tox.h)
|
||||
find_path(TOXAV_INCLUDE_DIR tox/toxav.h)
|
||||
|
||||
find_library(TOX_LIBRARY toxcore)
|
||||
find_library(TOXAV_LIBRARY toxav)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Tox DEFAULT_MSG TOX_INCLUDE_DIR TOXAV_INCLUDE_DIR TOX_LIBRARY TOXAV_LIBRARY)
|
4
cmake/FindWeeChat.cmake
Normal file
4
cmake/FindWeeChat.cmake
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue