summaryrefslogtreecommitdiffstats
path: root/cmake/FindGSM.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindGSM.cmake')
-rw-r--r--cmake/FindGSM.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/FindGSM.cmake b/cmake/FindGSM.cmake
new file mode 100644
index 0000000..366fd67
--- /dev/null
+++ b/cmake/FindGSM.cmake
@@ -0,0 +1,13 @@
+
+find_path(GSM_INCLUDE_DIR gsm/gsm.h)
+
+find_library(GSM_LIBRARY gsm)
+
+find_package_handle_standard_args(GSM DEFAULT_MSG GSM_INCLUDE_DIR GSM_LIBRARY)
+
+if(GSM_FOUND)
+ set(GSM_LIBRARIES ${GSM_LIBRARY})
+ set(GSM_INCLUDE_DIRS ${GSM_INCLUDE_DIR})
+endif()
+
+mark_as_advanced(GSM_INCLUDE_DIR GSM_LIBRARY)