Browse Source

fix(cmake): Add search for toxcore or libtoxcore

pull/3913/head
Diadlo 9 years ago
parent
commit
a4537549c0
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 13
      cmake/Dependencies.cmake

13
cmake/Dependencies.cmake

@ -94,9 +94,20 @@ search_dependency(LIBQRENCODE PACKAGE libqrencode) @@ -94,9 +94,20 @@ search_dependency(LIBQRENCODE PACKAGE libqrencode)
search_dependency(LIBSODIUM PACKAGE libsodium)
search_dependency(LIBSWSCALE PACKAGE libswscale)
search_dependency(SQLCIPHER PACKAGE sqlcipher)
search_dependency(VPX PACKAGE vpx)
# Try to find cmake toxcore libraries
search_dependency(TOXCORE PACKAGE toxcore OPTIONAL)
search_dependency(TOXAV PACKAGE toxav OPTIONAL)
search_dependency(TOXENCRYPTSAVE PACKAGE toxencryptsave OPTIONAL)
# If not found, use automake toxcore libraries
if (NOT TOXCORE_FOUND OR
NOT TOXAV_FOUND OR
NOT TOXENCRYPTSAVE_FOUND)
search_dependency(TOXCORE PACKAGE libtoxcore)
search_dependency(TOXAV PACKAGE libtoxav)
search_dependency(VPX PACKAGE vpx)
endif()
search_dependency(OPENAL PACKAGE openal FRAMEWORK OpenAL)

Loading…
Cancel
Save