summaryrefslogtreecommitdiffstats
path: root/cmake/FindZrtpcpp.cmake
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-01 11:30:01 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-01 11:31:22 +0200
commit545703d60acb8b0245e3d79e5dfd7171ca10c572 (patch)
treec7a54f533a0592fe4fa00013eff599463cdc8200 /cmake/FindZrtpcpp.cmake
parenta89783c705ddb30ffc3b1e3c87b0761f60c33022 (diff)
downloadtwinkle-545703d60acb8b0245e3d79e5dfd7171ca10c572.tar
twinkle-545703d60acb8b0245e3d79e5dfd7171ca10c572.tar.gz
twinkle-545703d60acb8b0245e3d79e5dfd7171ca10c572.tar.lz
twinkle-545703d60acb8b0245e3d79e5dfd7171ca10c572.tar.xz
twinkle-545703d60acb8b0245e3d79e5dfd7171ca10c572.zip
Added initial CMakeLists.txt, searching for dependencies (zrtp, ilbc, speex)
Diffstat (limited to 'cmake/FindZrtpcpp.cmake')
-rw-r--r--cmake/FindZrtpcpp.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/FindZrtpcpp.cmake b/cmake/FindZrtpcpp.cmake
new file mode 100644
index 0000000..8f09150
--- /dev/null
+++ b/cmake/FindZrtpcpp.cmake
@@ -0,0 +1,17 @@
+FIND_PATH(ZRTPCPP_INCLUDE_DIR libzrtpcpp/ZrtpConfigure.h)
+FIND_LIBRARY(ZRTPCPP_LIBRARIES NAMES zrtpcpp)
+
+IF(ZRTPCPP_INCLUDE_DIR AND ZRTPCPP_LIBRARIES)
+ SET(ZRTPCPP_FOUND TRUE)
+ENDIF(ZRTPCPP_INCLUDE_DIR AND ZRTPCPP_LIBRARIES)
+
+IF(ZRTPCPP_FOUND)
+ IF (NOT Zrtpcpp_FIND_QUIETLY)
+ MESSAGE(STATUS "Found libzrtpcpp includes: ${ZRTPCPP_INCLUDE_DIR}/libzrtpcpp/ZrtpConfigure.h")
+ MESSAGE(STATUS "Found libzrtpcpp library: ${ZRTPCPP_LIBRARIES}")
+ ENDIF (NOT Zrtpcpp_FIND_QUIETLY)
+ELSE(ZRTPCPP_FOUND)
+ IF (Zrtpcpp_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could NOT find libzrtpcpp development files")
+ ENDIF (Zrtpcpp_FIND_REQUIRED)
+ENDIF(ZRTPCPP_FOUND)