summaryrefslogtreecommitdiffstats
path: root/cmake/FindCcrtp.cmake
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-01 16:38:53 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-01 16:38:53 +0200
commit2142a3eaa4c1eb99aa1e4c7d95a4e1115bc4c689 (patch)
treed5e801c683f59a4471ba9d64f2b22ab7908a8b8b /cmake/FindCcrtp.cmake
parent545703d60acb8b0245e3d79e5dfd7171ca10c572 (diff)
downloadtwinkle-2142a3eaa4c1eb99aa1e4c7d95a4e1115bc4c689.tar
twinkle-2142a3eaa4c1eb99aa1e4c7d95a4e1115bc4c689.tar.gz
twinkle-2142a3eaa4c1eb99aa1e4c7d95a4e1115bc4c689.tar.lz
twinkle-2142a3eaa4c1eb99aa1e4c7d95a4e1115bc4c689.tar.xz
twinkle-2142a3eaa4c1eb99aa1e4c7d95a4e1115bc4c689.zip
Many submodules building (no gui yet), with link-time errors
Diffstat (limited to 'cmake/FindCcrtp.cmake')
-rw-r--r--cmake/FindCcrtp.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/FindCcrtp.cmake b/cmake/FindCcrtp.cmake
new file mode 100644
index 0000000..93a9e31
--- /dev/null
+++ b/cmake/FindCcrtp.cmake
@@ -0,0 +1,17 @@
+FIND_PATH(CCRTP_INCLUDE_DIR ccrtp/rtp.h)
+FIND_LIBRARY(CCRTP_LIBRARIES NAMES ccrtp)
+
+IF(CCRTP_INCLUDE_DIR AND CCRTP_LIBRARIES)
+ SET(CCRTP_FOUND TRUE)
+ENDIF(CCRTP_INCLUDE_DIR AND CCRTP_LIBRARIES)
+
+IF(CCRTP_FOUND)
+ IF (NOT Ccrtp_FIND_QUIETLY)
+ MESSAGE(STATUS "Found ccrtp includes: ${CCRTP_INCLUDE_DIR}/ccrtp/rtp.h")
+ MESSAGE(STATUS "Found ccrtp library: ${CCRTP_LIBRARIES}")
+ ENDIF (NOT Ccrtp_FIND_QUIETLY)
+ELSE(CCRTP_FOUND)
+ IF (Ccrtp_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could NOT find ccrtp development files")
+ ENDIF (Ccrtp_FIND_REQUIRED)
+ENDIF(CCRTP_FOUND)