summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-18 13:21:19 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-18 13:21:19 (GMT)
commit17a97ef1e91c3f535b7820461f47cea082dae478 (patch)
treeb62c69db8047b99fe58269a3705afaa286618f01
parent956ac2dae9252be6a4a33d0917314711af774cc1 (diff)
Look at to use new syntax highlighting module
-rw-r--r--CMakeLists.txt10
-rw-r--r--messageviewer/src/config-messageviewer.h.cmake1
2 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 881bc35..6f19a15 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -86,7 +86,15 @@ find_package(KF5AkonadiSearch "5.3.40" CONFIG REQUIRED)
set_package_properties(KF5AkonadiSearch PROPERTIES DESCRIPTION "The Akonadi Search libraries" URL "http://www.kde.org" TYPE REQUIRED PURPOSE "Provides search capabilities in KMail and Akonadi")
option(KDEPIM_ENTERPRISE_BUILD "Enable features specific to the enterprise branch, which are normally disabled. Also, it disables many components not needed for Kontact such as the Kolab client." FALSE)
-
+option(KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT "Enable this feature if you want to use new kf5 syntax highlighting module. No stable yet" FALSE)
+
+if (KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT)
+ find_package(KF5SyntaxHighlighting ${KF5_VERSION})
+ if (KF5SyntaxHighlighting_FOUND)
+ MESSAGE(STATUS "found KF5SyntaxHighlighting")
+ set(KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT true)
+ endif()
+endif()
# Support for the GIT revision number in messagecomposer-version.h
if(EXISTS "${Messagelib_SOURCE_DIR}/.git")
diff --git a/messageviewer/src/config-messageviewer.h.cmake b/messageviewer/src/config-messageviewer.h.cmake
index b35e9b1..5cbb0a9 100644
--- a/messageviewer/src/config-messageviewer.h.cmake
+++ b/messageviewer/src/config-messageviewer.h.cmake
@@ -1,2 +1,3 @@
#cmakedefine HAVE_SYS_INOTIFY_H 1
#cmakedefine WEBENGINEVIEWER_PRINT_SUPPORT 1
+#cmakedefine KDEPIM_KF5SYNTAXHIGHLIGHTING_SUPPORT 1