summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-05 07:04:48 +0200
committerMontel Laurent <[email protected]>2017-09-05 07:04:48 +0200
commit3fa61324e33908d864fd53d71c9be97ff776cd68 (patch)
tree424cf36f135e9915961e1117f9878076c78d6aa5
parent0b83449fc177f390d767aba77aca35c513d5e5d6 (diff)
Search xapian. Add include path
-rw-r--r--CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5b8ce80..58feba4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -99,7 +99,15 @@ find_package(KF5Mime ${KMIME_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(KF5Libkleo ${LIBKLEO_LIB_VERSION_LIB} CONFIG REQUIRED)
-include_directories(${akonadiconsole_SOURCE_DIR} ${akonadiconsole_BINARY_DIR})
+find_package(Xapian CONFIG)
+set_package_properties(Xapian PROPERTIES
+ DESCRIPTION "The Xapian search engine library"
+ URL "http://xapian.org"
+ TYPE REQUIRED
+)
+
+
+include_directories(${akonadiconsole_SOURCE_DIR} ${akonadiconsole_BINARY_DIR} ${XAPIAN_INCLUDE_DIR})
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_USE_QSTRINGBUILDER)