diff options
Diffstat (limited to 'cmake/Dependencies.cmake')
-rw-r--r-- | cmake/Dependencies.cmake | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index 5ad332bd..4cb96594 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake | |||
@@ -8,30 +8,38 @@ include(ModulePackage) | |||
8 | 8 | ||
9 | find_package(Threads REQUIRED) | 9 | find_package(Threads REQUIRED) |
10 | 10 | ||
11 | find_library(NCURSES_LIBRARIES ncurses ) | 11 | find_library(NCURSES_LIBRARIES ncurses ) |
12 | find_library(UTIL_LIBRARIES util ) | 12 | find_library(UTIL_LIBRARIES util ) |
13 | find_library(RT_LIBRARIES rt ) | 13 | find_library(RT_LIBRARIES rt ) |
14 | 14 | ||
15 | # For toxcore. | 15 | # For toxcore. |
16 | pkg_use_module(LIBSODIUM libsodium ) | 16 | pkg_use_module(LIBSODIUM libsodium ) |
17 | pkg_use_module(LIBEV ev ) | ||
18 | if(NOT LIBEV_FOUND) | ||
19 | if(NOT WIN32) | ||
20 | pkg_use_module(LIBEVENT libevent_pthreads ) | ||
21 | else() | ||
22 | pkg_use_module(LIBEVENT libevent ) | ||
23 | endif() | ||
24 | endif() | ||
17 | 25 | ||
18 | # For toxav. | 26 | # For toxav. |
19 | pkg_use_module(OPUS opus ) | 27 | pkg_use_module(OPUS opus ) |
20 | pkg_use_module(VPX vpx ) | 28 | pkg_use_module(VPX vpx ) |
21 | 29 | ||
22 | # For tox-bootstrapd. | 30 | # For tox-bootstrapd. |
23 | pkg_use_module(LIBCONFIG libconfig ) | 31 | pkg_use_module(LIBCONFIG libconfig ) |
24 | 32 | ||
25 | # For auto tests. | 33 | # For auto tests. |
26 | pkg_use_module(CHECK check ) | 34 | pkg_use_module(CHECK check ) |
27 | 35 | ||
28 | # For tox-spectest. | 36 | # For tox-spectest. |
29 | pkg_use_module(MSGPACK msgpack ) | 37 | pkg_use_module(MSGPACK msgpack ) |
30 | 38 | ||
31 | # For av_test. | 39 | # For av_test. |
32 | pkg_use_module(OPENCV opencv ) | 40 | pkg_use_module(OPENCV opencv ) |
33 | pkg_use_module(PORTAUDIO portaudio-2.0) | 41 | pkg_use_module(PORTAUDIO portaudio-2.0 ) |
34 | pkg_use_module(SNDFILE sndfile ) | 42 | pkg_use_module(SNDFILE sndfile ) |
35 | 43 | ||
36 | ############################################################################### | 44 | ############################################################################### |
37 | # | 45 | # |