<commit_before>if(NOT HAVE_REGEX_H)
  set(REGEX_INCLUDE_DIR ${strigi_SOURCE_DIR}/src/streams/strigi/regex)
  set(REGEX_SOURCES ${REGEX_INCLUDE_DIR}/regex.c)
  # TODO: install copyright file !
endif(NOT HAVE_REGEX_H)

include_directories(
  ../streamanalyzer
  ../streams
  ${REGEX_INCLUDE_DIR}
  ${strigi_BINARY_DIR}/src/streams
)

add_executable(dummyindexer dummyindexer.cpp)
target_link_libraries(dummyindexer streamanalyzer)

add_executable(deepfind deepfind.cpp)
target_link_libraries(deepfind streamanalyzer)
install(TARGETS deepfind RUNTIME DESTINATION bin)

add_library(grepindexer grepindexreader.cpp grepindexmanager.cpp
    grepindexwriter.cpp ${REGEX_SOURCES})

add_executable(deepgrep deepgrep.cpp)
target_link_libraries(deepgrep streamanalyzer ${REGEX_LIBRARIES} grepindexer)
install(TARGETS deepgrep RUNTIME DESTINATION bin)

add_executable(greptest grepindexreader.cpp)
target_link_libraries(greptest streamanalyzer)

if(NOT MSVC)
  add_executable(analyzerlatencytester analyzerlatencytester.cpp)
  target_link_libraries(analyzerlatencytester streamanalyzer)
endif(NOT MSVC)

add_library(grepindex grepindexmanager.cpp)<commit_msg>fix linking with mingw & cmake 2.6-rc9 - already known by cmake devs and fixed in cvs afaik<commit_after>if(NOT HAVE_REGEX_H)
  set(REGEX_INCLUDE_DIR ${strigi_SOURCE_DIR}/src/streams/strigi/regex)
  set(REGEX_SOURCES ${REGEX_INCLUDE_DIR}/regex.c)
  # TODO: install copyright file !
endif(NOT HAVE_REGEX_H)

include_directories(
  ../streamanalyzer
  ../streams
  ${REGEX_INCLUDE_DIR}
  ${strigi_BINARY_DIR}/src/streams
)

add_executable(dummyindexer dummyindexer.cpp)
target_link_libraries(dummyindexer streamanalyzer)

add_executable(deepfind deepfind.cpp)
target_link_libraries(deepfind streamanalyzer)
install(TARGETS deepfind RUNTIME DESTINATION bin)

add_library(grepindexer grepindexreader.cpp grepindexmanager.cpp
    grepindexwriter.cpp ${REGEX_SOURCES})

add_executable(deepgrep deepgrep.cpp)
target_link_libraries(deepgrep grepindexer streamanalyzer ${REGEX_LIBRARIES})
install(TARGETS deepgrep RUNTIME DESTINATION bin)

add_executable(greptest grepindexreader.cpp)
target_link_libraries(greptest streamanalyzer)

if(NOT MSVC)
  add_executable(analyzerlatencytester analyzerlatencytester.cpp)
  target_link_libraries(analyzerlatencytester streamanalyzer)
endif(NOT MSVC)

add_library(grepindex grepindexmanager.cpp)
{'fraction_non_alphanumeric': 0.07672849915682968, 'fraction_numerical': 0.0012647554806070826, 'mean_word_length': 8.45418326693227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5694077', 'n_tokens_mistral': 870, 'n_tokens_neox': 827, 'n_words': 134}