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
|
2015-06-22 13:52:56 +02:00
|
|
|
token_annotation.cpp
|
|
|
|
anonymized_sentence.cpp
|
|
|
|
hashed_sentence.cpp
|
2015-04-17 14:17:59 +02:00
|
|
|
concordia_search_result.cpp
|
|
|
|
matched_pattern_fragment.cpp
|
2015-04-24 11:48:32 +02:00
|
|
|
concordia_searcher.cpp
|
2015-06-22 13:52:56 +02:00
|
|
|
regex_rule.cpp
|
2014-04-13 12:21:30 +02:00
|
|
|
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
|
2015-06-22 13:52:56 +02:00
|
|
|
token_annotation.hpp
|
|
|
|
anonymized_sentence.hpp
|
|
|
|
hashed_sentence.hpp
|
2015-04-24 11:48:32 +02:00
|
|
|
concordia_search_result.hpp
|
|
|
|
matched_pattern_fragment.hpp
|
|
|
|
concordia_searcher.hpp
|
2015-06-22 13:52:56 +02:00
|
|
|
regex_rule.hpp
|
2014-04-24 08:36:48 +02:00
|
|
|
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})
|
|
|
|
|
2015-05-04 20:40:44 +02:00
|
|
|
target_link_libraries(concordia config++)
|
2013-10-24 17:08:58 +02:00
|
|
|
target_link_libraries(concordia log4cpp)
|
|
|
|
target_link_libraries(concordia ${Boost_LIBRARIES})
|
2013-11-20 17:43:29 +01:00
|
|
|
target_link_libraries(concordia divsufsort)
|
2015-05-04 20:40:44 +02:00
|
|
|
target_link_libraries(concordia utf8case)
|
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)
|
|
|
|
|