From 02ce26850a3e82e83329da8d35ddc638a23f0511 Mon Sep 17 00:00:00 2001
From: Ghislain MARY <ghislain.mary@belledonne-communications.com>
Date: Thu, 15 Oct 2015 14:53:15 +0200
Subject: [PATCH] Add CMake option to enable/disable LIME.

---
 CMakeLists.txt | 4 ++++
 config.h.cmake | 1 +
 2 files changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index dfc0ec935f..faf859c13b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,7 @@ option(ENABLE_DATE "Use build date in internal version number." NO)
 option(ENABLE_DOC "Enable documentation generation with Doxygen." YES)
 option(ENABLE_GTK_UI "Turn on or off compilation of gtk interface." YES)
 option(ENABLE_LDAP "Enable LDAP support." NO)
+option(ENABLE_LIME "Enable Instant Messaging Encryption." NO)
 option(ENABLE_MSG_STORAGE "Turn on compilation of message storage." YES)
 cmake_dependent_option(ENABLE_NOTIFY "Enable libnotify support." YES "ENABLE_GTK_UI" NO)
 option(ENABLE_RELATIVE_PREFIX "Find resources relatively to the installation directory." NO)
@@ -135,6 +136,9 @@ endif()
 if(ENABLE_CALL_LOGS_STORAGE)
 	find_package(Sqlite3 REQUIRED)
 endif()
+if(ENABLE_LIME)
+	set(HAVE_LIME 1)
+endif()
 
 if(UNIX AND NOT APPLE)
 	include(CheckIncludeFiles)
diff --git a/config.h.cmake b/config.h.cmake
index 35d7e2ac9d..d731b58e6d 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -43,4 +43,5 @@
 #cmakedefine HAVE_CU_GET_SUITE 1
 #cmakedefine HAVE_CU_CURSES 1
 #cmakedefine HAVE_LIBUDEV_H 0
+#cmakedefine HAVE_LIME
 #cmakedefine ENABLE_NLS 1
-- 
GitLab