git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225601 283d02a7-25f6-0310-bc7c-ecb5cbfe19dav3.5.13-sru
parent
760bf34acb
commit
75f32756ec
@ -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( )
|
@ -0,0 +1,24 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2010-2011 Serghei Amelian
|
||||||
|
# serghei (DOT) amelian (AT) gmail.com
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
include( CheckIncludeFileCXX )
|
||||||
|
|
||||||
|
tde_save( CMAKE_CXX_FLAGS CMAKE_REQUIRED_INCLUDES )
|
||||||
|
unset( CMAKE_CXX_FLAGS )
|
||||||
|
set( CMAKE_REQUIRED_INCLUDES ${BOOST_INCLUDE_DIR} )
|
||||||
|
|
||||||
|
check_include_file_cxx( "boost/format.hpp" HAVE_BOOST )
|
||||||
|
|
||||||
|
if( NOT HAVE_BOOST )
|
||||||
|
tde_message_fatal( "boost library is required, but was not found on your system.\n Try to set boost include dir to BOOST_INCLUDE_DIR." )
|
||||||
|
endif( )
|
||||||
|
|
||||||
|
tde_restore( CMAKE_CXX_FLAGS CMAKE_REQUIRED_INCLUDES )
|
@ -1,23 +0,0 @@
|
|||||||
#################################################
|
|
||||||
#
|
|
||||||
# (C) 2010-2011 Serghei Amelian
|
|
||||||
# serghei (DOT) amelian (AT) gmail.com
|
|
||||||
#
|
|
||||||
# Improvements and feedback are welcome
|
|
||||||
#
|
|
||||||
# This file is released under GPL >= 2
|
|
||||||
#
|
|
||||||
#################################################
|
|
||||||
|
|
||||||
# check for stl coping with namespace std
|
|
||||||
tde_save( CMAKE_CXX_FLAGS )
|
|
||||||
string( REGEX REPLACE "-include tqt.h" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
|
|
||||||
check_cxx_source_compiles("
|
|
||||||
#include <iterator>
|
|
||||||
struct s : public std::iterator<std::forward_iterator_tag, int> {};
|
|
||||||
int main(int, char**) { return 0; } "
|
|
||||||
HAVE_STLNAMESPACE )
|
|
||||||
tde_restore( CMAKE_CXX_FLAGS )
|
|
||||||
if( HAVE_STLNAMESPACE )
|
|
||||||
set( STD_NAMESPACE_PREFIX "std::" CACHE INTERNAL "" FORCE )
|
|
||||||
endif( )
|
|
Loading…
Reference in new issue