summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-01-06 16:47:35 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-01-06 16:47:35 +0100
commit236bf09a0ec67d7ee96a99dedd65b92344c66935 (patch)
treea27d38754c82f10e751ccf7b2692f6fc488269f0
parentMerge branch 'macos-ci-fix' into 'master' (diff)
downloadnheko-236bf09a0ec67d7ee96a99dedd65b92344c66935.tar.xz
Explicitly mention, if call support is enabled at build time
fixes #366
-rw-r--r--CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ba411ca..2d0d6dd6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -446,6 +446,15 @@ endif()
 
 include(FindPkgConfig)
 pkg_check_modules(GSTREAMER IMPORTED_TARGET gstreamer-sdp-1.0>=1.14 gstreamer-webrtc-1.0>=1.14) 
+if (TARGET PkgConfig::GSTREAMER)
+	add_feature_info(voip ON "GStreamer found. Call support is enabled
+	automatically.")
+else()
+	add_feature_info(voip OFF "GStreamer could not be found on your system.
+	As a consequence call support has been disabled. If you don't want that,
+	make sure gstreamer-sdp-1.0>=1.16 gstreamer-webrtc-1.0>=1.16 can be found
+	via pkgconfig.")
+endif()
 
 # single instance functionality
 set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication")