diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e3fde0..a3f4e93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@ OPTION(WITH_ZRTP "Enable ZRTP encrypted calls" OFF) OPTION(WITH_SPEEX "Enable the Speex codec" OFF) OPTION(WITH_ILBC "Enable the iLBC codec" OFF) OPTION(WITH_ALSA "Enable ALSA support" ON) +OPTION(WITH_JACK "Enable JackAudio support" ON) OPTION(WITH_DIAMONDCARD "Enable Diamondcard integration" OFF) OPTION(WITH_QT5 "Enable Qt 5 GUI" ON) CMAKE_DEPENDENT_OPTION(WITH_DBUS "Enable use of QtDBus (GUI only)" ON "WITH_QT5" OFF) @@ -68,6 +69,17 @@ if (WITH_ALSA) endif (ALSA_FOUND) endif (WITH_ALSA) +if (WITH_JACK) + find_package(Jack) + + if (JACK_FOUND) + message(STATUS "jack OK") + set(HAVE_JACK TRUE) + else (JACK_FOUND) + message(FATAL_ERROR "jack not found!") + endif (JACK_FOUND) +endif (WITH_JACK) + if (WITH_ZRTP) find_package(Zrtpcpp) |