concordia-library/concordia/CMakeLists.txt

97 lines
2.5 KiB
CMake
Raw Normal View History

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
concordia_search_result.cpp
matched_pattern_fragment.cpp
concordia_searcher.cpp
2015-06-22 13:52:56 +02:00
regex_rule.cpp
sentence_anonymizer.cpp
interval.cpp
tm_matches.cpp
anubis_search_result.cpp
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
common/utils.cpp
common/text_utils.cpp
2013-10-24 17:08:58 +02:00
)
add_subdirectory(t)
# =====================================
install(TARGETS concordia DESTINATION lib/)
install(FILES
2015-06-22 13:52:56 +02:00
token_annotation.hpp
anonymized_sentence.hpp
hashed_sentence.hpp
concordia_search_result.hpp
matched_pattern_fragment.hpp
concordia_searcher.hpp
2015-06-22 13:52:56 +02:00
regex_rule.hpp
sentence_anonymizer.hpp
interval.hpp
tm_matches.hpp
anubis_search_result.hpp
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
common/text_utils.hpp
DESTINATION include/concordia/common/)
2013-10-24 17:08:58 +02: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)