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:
parent
fddda5de61
commit
a4537549c0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user