<commit_before>include(GNUInstallDirs)

# fixup embedded library paths
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
  "${CMAKE_INSTALL_FULL_LIBDIR}" isSystemDir)
IF("${isSystemDir}" STREQUAL "-1")
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
ENDIF("${isSystemDir}" STREQUAL "-1")

################################################################################

include_directories(${CMAKE_BINARY_DIR}/src)
include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${CMAKE_SOURCE_DIR}/src/include)

################################################################################

set(FLATBUFFERS_BUILD_TESTS OFF CACHE BOOL INTERNAL FORCE)
set(FLATBUFFERS_INSTALL OFF CACHE BOOL INTERNAL FORCE)
set(FLATBUFFERS_FLATLIB OFF CACHE BOOL INTERNAL FORCE)
set(FLATBUFFERS_FLATHASH OFF CACHE BOOL INTERNAL FORCE)
add_subdirectory(flatbuffers EXCLUDE_FROM_ALL)

add_subdirectory(googletest/googlemock)
add_subdirectory(include)
#add_subdirectory(libseq)
add_subdirectory(libzlog)
add_subdirectory(storage)
add_subdirectory(test)

option(WITH_JNI "build with JNI" OFF)
if(WITH_JNI)
  message(STATUS "JNI library is enabled")
  add_subdirectory(java)
else()
  message(STATUS "JNI library is disabled")
endif(WITH_JNI)

# add_executable(zlog-seqr seqr-server.cc)
# target_link_libraries(zlog-seqr
#     libzlog
#     ${Boost_PROGRAM_OPTIONS_LIBRARY}
#     ${Boost_SYSTEM_LIBRARY}<commit_msg>cmake: import from top level to fix cmake warnings<commit_after>include(GNUInstallDirs)

# fixup embedded library paths
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
  "${CMAKE_INSTALL_FULL_LIBDIR}" isSystemDir)
IF("${isSystemDir}" STREQUAL "-1")
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}")
ENDIF("${isSystemDir}" STREQUAL "-1")

################################################################################

include_directories(${CMAKE_BINARY_DIR}/src)
include_directories(${CMAKE_SOURCE_DIR}/src)
include_directories(${CMAKE_SOURCE_DIR}/src/include)

################################################################################

set(FLATBUFFERS_BUILD_TESTS OFF CACHE BOOL INTERNAL FORCE)
set(FLATBUFFERS_INSTALL OFF CACHE BOOL INTERNAL FORCE)
set(FLATBUFFERS_FLATLIB OFF CACHE BOOL INTERNAL FORCE)
set(FLATBUFFERS_FLATHASH OFF CACHE BOOL INTERNAL FORCE)
add_subdirectory(flatbuffers EXCLUDE_FROM_ALL)

add_subdirectory(googletest)
add_subdirectory(include)
#add_subdirectory(libseq)
add_subdirectory(libzlog)
add_subdirectory(storage)
add_subdirectory(test)

option(WITH_JNI "build with JNI" OFF)
if(WITH_JNI)
  message(STATUS "JNI library is enabled")
  add_subdirectory(java)
else()
  message(STATUS "JNI library is disabled")
endif(WITH_JNI)

# add_executable(zlog-seqr seqr-server.cc)
# target_link_libraries(zlog-seqr
#     libzlog
#     ${Boost_PROGRAM_OPTIONS_LIBRARY}
#     ${Boost_SYSTEM_LIBRARY}
{'fraction_non_alphanumeric': 0.18636363636363637, 'fraction_numerical': 0.0012987012987012987, 'mean_word_length': 10.411111111111111, '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': '3697573', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1047, 'n_words': 173}