diff options
Diffstat (limited to 'cmake/FindZrtpcpp.cmake')
-rw-r--r-- | cmake/FindZrtpcpp.cmake | 17 |
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) |