2013-10-24 17:08:58 +02:00
|
|
|
set(ALL_DIRECTORIES common)
|
|
|
|
|
|
|
|
foreach(dir ${ALL_DIRECTORIES})
|
|
|
|
link_directories("${concordia_BINARY_DIR}/${dir}")
|
|
|
|
add_subdirectory(${dir})
|
|
|
|
endforeach(dir)
|
|
|
|
|
|
|
|
add_library(concordia SHARED
|
2014-05-14 16:29:44 +02:00
|
|
|
anubis_searcher.cpp
|
2014-04-13 12:21:30 +02:00
|
|
|
regex_replacement.cpp
|
|
|
|
sentence_anonymizer.cpp
|
2014-03-11 14:29:30 +01:00
|
|
|
interval.cpp
|
|
|
|
tm_matches.cpp
|
|
|
|
anubis_search_result.cpp
|
2014-02-20 10:49:17 +01:00
|
|
|
substring_occurence.cpp
|
|
|
|
example.cpp
|
2013-11-28 16:47:57 +01:00
|
|
|
index_searcher.cpp
|
2013-11-14 20:36:34 +01:00
|
|
|
concordia_index.cpp
|
2013-11-12 22:08:37 +01:00
|
|
|
word_map.cpp
|
2013-11-12 16:58:18 +01:00
|
|
|
hash_generator.cpp
|
2013-10-24 17:08:58 +02:00
|
|
|
concordia.cpp
|
|
|
|
concordia_config.cpp
|
|
|
|
concordia_exception.cpp
|
|
|
|
common/logging.cpp
|
2013-12-06 22:29:25 +01:00
|
|
|
common/utils.cpp
|
2014-04-24 08:36:48 +02:00
|
|
|
common/text_utils.cpp
|
2013-10-24 17:08:58 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(t)
|
|
|
|
# =====================================
|
|
|
|
|
|
|
|
install(TARGETS concordia DESTINATION lib/)
|
2014-02-20 18:46:04 +01:00
|
|
|
install(FILES
|
2014-05-14 16:29:44 +02:00
|
|
|
anubis_searcher.hpp
|
2014-04-24 08:36:48 +02:00
|
|
|
regex_replacement.hpp
|
|
|
|
sentence_anonymizer.hpp
|
2014-03-11 14:29:30 +01:00
|
|
|
interval.hpp
|
|
|
|
tm_matches.hpp
|
|
|
|
anubis_search_result.hpp
|
2014-02-20 18:46:04 +01:00
|
|
|
substring_occurence.hpp
|
|
|
|
example.hpp
|
|
|
|
index_searcher.hpp
|
|
|
|
concordia_index.hpp
|
|
|
|
word_map.hpp
|
|
|
|
hash_generator.hpp
|
|
|
|
concordia.hpp
|
|
|
|
concordia_config.hpp
|
|
|
|
concordia_exception.hpp
|
|
|
|
DESTINATION include/concordia/)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
common/config.hpp
|
|
|
|
common/logging.hpp
|
|
|
|
common/utils.hpp
|
2014-04-24 08:36:48 +02:00
|
|
|
common/text_utils.hpp
|
2014-02-20 18:46:04 +01:00
|
|
|
DESTINATION include/concordia/common/)
|
2013-10-24 17:08:58 +02:00
|
|
|
|
2013-12-06 22:29:25 +01:00
|
|
|
# ----------------------------------------------------
|
|
|
|
# libconfig
|
|
|
|
# ----------------------------------------------------
|
|
|
|
find_library(LIBCONFIG_LIB NAMES config++ REQUIRED)
|
|
|
|
find_path(LIBCONFIG_INCLUDE libconfig.h++)
|
|
|
|
|
|
|
|
if(EXISTS ${LIBCONFIG_LIB} AND EXISTS ${LIBCONFIG_INCLUDE})
|
|
|
|
message(STATUS "Found Libconfig")
|
|
|
|
include_directories(${LIBCONFIG_INCLUDE})
|
|
|
|
link_directories(${LIBCONFIG_LIB})
|
|
|
|
endif(EXISTS ${LIBCONFIG_LIB} AND EXISTS ${LIBCONFIG_INCLUDE})
|
|
|
|
|
2013-10-24 17:08:58 +02:00
|
|
|
target_link_libraries(concordia log4cpp)
|
|
|
|
target_link_libraries(concordia ${LIBSTEMMER_LIB})
|
|
|
|
target_link_libraries(concordia ${Boost_LIBRARIES})
|
2013-11-20 17:43:29 +01:00
|
|
|
target_link_libraries(concordia divsufsort)
|
2013-10-24 17:08:58 +02:00
|
|
|
|
|
|
|
if (WITH_RE2)
|
|
|
|
target_link_libraries(concordia re2)
|
|
|
|
if (WITH_PCRE)
|
|
|
|
target_link_libraries(concordia pcrecpp)
|
|
|
|
endif(WITH_PCRE)
|
|
|
|
else(WITH_RE2)
|
|
|
|
if (WITH_PCRE)
|
|
|
|
target_link_libraries(concordia pcrecpp)
|
|
|
|
endif(WITH_PCRE)
|
|
|
|
endif(WITH_RE2)
|
|
|
|
|