diff --git a/CMakeLists.txt b/CMakeLists.txt
index dfc0ec935f71282e9f8a8f360b791b482b585b1b..faf859c13b27341585a87a3f3fd7e3c9c710f3d7 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 35d7e2ac9de8711ec6a4d039f6f0a470ef79032d..d731b58e6d6822367a76d61302be129a504f7de6 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