1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(cmake): Add search for toxcore or libtoxcore

This commit is contained in:
Diadlo 2017-01-07 11:00:36 +03:00
parent fddda5de61
commit a4537549c0
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -94,10 +94,21 @@ search_dependency(LIBQRENCODE PACKAGE libqrencode)
search_dependency(LIBSODIUM PACKAGE libsodium)
search_dependency(LIBSWSCALE PACKAGE libswscale)
search_dependency(SQLCIPHER PACKAGE sqlcipher)
search_dependency(TOXCORE PACKAGE libtoxcore)
search_dependency(TOXAV PACKAGE libtoxav)
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)
endif()
search_dependency(OPENAL PACKAGE openal FRAMEWORK OpenAL)
# Automatic auto-away support. (X11 also using for capslock detection)