summaryrefslogtreecommitdiffstats
path: root/indexlib/CMakeLists.txt
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 23:34:09 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-21 23:34:09 +0000
commit75f32756ec8e53a0f254866c0d7120b078ce3b6e (patch)
tree8ce60911389d282ef783a29d067aba67cfd50d3d /indexlib/CMakeLists.txt
parent760bf34acbfebc8f7d2c569238138173c103f0db (diff)
downloadtdepim-75f32756ec8e53a0f254866c0d7120b078ce3b6e.tar.gz
tdepim-75f32756ec8e53a0f254866c0d7120b078ce3b6e.zip
[kdepim] indexlib ported to cmake; added indexlib (optional) support to kmail
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225601 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'indexlib/CMakeLists.txt')
-rw-r--r--indexlib/CMakeLists.txt56
1 files changed, 56 insertions, 0 deletions
diff --git a/indexlib/CMakeLists.txt b/indexlib/CMakeLists.txt
new file mode 100644
index 000000000..bb8646605
--- /dev/null
+++ b/indexlib/CMakeLists.txt
@@ -0,0 +1,56 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+project( indexlib )
+
+include( ConfigureChecks.cmake )
+
+string( REPLACE "-include tqt.h" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include compat.h ${USE_EXCEPTIONS}" )
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ create.h index.h lockfile.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/index )
+
+
+##### other data ################################
+
+configure_file( indexlib-config.in indexlib-config @ONLY )
+
+install( PROGRAMS
+ ${CMAKE_CURRENT_BINARY_DIR}/indexlib-config
+ DESTINATION ${BIN_INSTALL_DIR} )
+
+
+##### index (shared) ############################
+
+tde_add_library( index SHARED
+ SOURCES
+ bitstream.cpp compressed.cpp create.cpp exception.cpp ifile.cpp
+ leafdata.cpp leafdatavector.cpp lockfile.cpp logfile.cpp match.cpp
+ mmap_manager.cpp quotes.cpp slow.cpp stringarray.cpp stringset.cpp
+ tokenizer.cpp
+ LINK z
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+##### install import cmake modules ###############
+
+tde_install_export( )