summaryrefslogtreecommitdiffstats
path: root/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
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')
-rw-r--r--cmake/FindIlbc.cmake17
-rw-r--r--cmake/FindSpeex.cmake17
-rw-r--r--cmake/FindZrtpcpp.cmake17
3 files changed, 51 insertions, 0 deletions
diff --git a/cmake/FindIlbc.cmake b/cmake/FindIlbc.cmake
new file mode 100644
index 0000000..f66ca55
--- /dev/null
+++ b/cmake/FindIlbc.cmake
@@ -0,0 +1,17 @@
+FIND_PATH(ILBC_INCLUDE_DIR ilbc/iLBC_decode.h)
+FIND_LIBRARY(ILBC_LIBRARIES NAMES ilbc)
+
+IF(ILBC_INCLUDE_DIR AND ILBC_LIBRARIES)
+ SET(ILBC_FOUND TRUE)
+ENDIF(ILBC_INCLUDE_DIR AND ILBC_LIBRARIES)
+
+IF(ILBC_FOUND)
+ IF (NOT Ilbc_FIND_QUIETLY)
+ MESSAGE(STATUS "Found ilbc includes: ${ILBC_INCLUDE_DIR}/ilbc/iLBC_decode.h")
+ MESSAGE(STATUS "Found ilbc library: ${ILBC_LIBRARIES}")
+ ENDIF (NOT Ilbc_FIND_QUIETLY)
+ELSE(ILBC_FOUND)
+ IF (Ilbc_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could NOT find ilbc development files")
+ ENDIF (Ilbc_FIND_REQUIRED)
+ENDIF(ILBC_FOUND)
diff --git a/cmake/FindSpeex.cmake b/cmake/FindSpeex.cmake
new file mode 100644
index 0000000..ff801fa
--- /dev/null
+++ b/cmake/FindSpeex.cmake
@@ -0,0 +1,17 @@
+FIND_PATH(SPEEX_INCLUDE_DIR speex/speex.h)
+FIND_LIBRARY(SPEEX_LIBRARIES NAMES speex)
+
+IF(SPEEX_INCLUDE_DIR AND SPEEX_LIBRARIES)
+ SET(SPEEX_FOUND TRUE)
+ENDIF(SPEEX_INCLUDE_DIR AND SPEEX_LIBRARIES)
+
+IF(SPEEX_FOUND)
+ IF (NOT Speex_FIND_QUIETLY)
+ MESSAGE(STATUS "Found speex includes: ${SPEEX_INCLUDE_DIR}/speex/speex.h")
+ MESSAGE(STATUS "Found speex library: ${SPEEX_LIBRARIES}")
+ ENDIF (NOT Speex_FIND_QUIETLY)
+ELSE(SPEEX_FOUND)
+ IF (Speex_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could NOT find speex development files")
+ ENDIF (Speex_FIND_REQUIRED)
+ENDIF(SPEEX_FOUND)
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)