<commit_before>project(cxxtags)

set(LLVM_HOME "" CACHE PATH "")
set(LEVELDB_HOME "" CACHE PATH "")
set(BOOST_HOME "" CACHE PATH "")
set(CMAKE_CXX_FLAGS "-g -O2 -Wall" CACHE STRING "")
set(CMAKE_EXE_LINKER_FLAGS "" CACHE STRING "")

include_directories(${LLVM_HOME}/include ${LEVELDB_HOME}/include ${BOOST_HOME}/include)
link_directories(${LLVM_HOME}/lib ${LEVELDB_HOME}/lib ${BOOST_HOME}/lib)

add_executable(cxxtags_core cxxtags_core.cpp DbImplLevelDb.cpp)
target_link_libraries(cxxtags_core clang stdc++ leveldb snappy boost_filesystem-mt boost_system-mt boost_timer-mt)

install(FILES
    ${PROJECT_BINARY_DIR}/cxxtags_core
    ${PROJECT_SOURCE_DIR}/cxxtags
    ${PROJECT_SOURCE_DIR}/cxxtags_db_manager
    ${PROJECT_SOURCE_DIR}/cxxtags_query
    ${PROJECT_SOURCE_DIR}/cxxtags_util.py
    ${PROJECT_SOURCE_DIR}/cxxtags_run_proj
    ${PROJECT_SOURCE_DIR}/g++.py
    ${PROJECT_SOURCE_DIR}/gcc.py
    DESTINATION ${PROJECT_SOURCE_DIR}/../bin
    PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
   )<commit_msg>Update CMakeLists.txt. Search libboost by find_package.<commit_after>project(cxxtags)

set(LLVM_HOME "" CACHE PATH "")
set(LEVELDB_HOME "" CACHE PATH "")
set(CMAKE_CXX_FLAGS "-g -O2 -Wall" CACHE STRING "")
set(CMAKE_EXE_LINKER_FLAGS "" CACHE STRING "")

FIND_PACKAGE(Boost COMPONENTS filesystem system timer REQUIRED)

include_directories(
    ${LLVM_HOME}/include
    ${LEVELDB_HOME}/include
    ${Boost_INCLUDE_DIRS}
)
link_directories(${LLVM_HOME}/lib ${LEVELDB_HOME}/lib)

add_executable(cxxtags_core cxxtags_core.cpp DbImplLevelDb.cpp)
target_link_libraries(cxxtags_core clang stdc++ leveldb snappy
    ${Boost_FILESYSTEM_LIBRARY}
    ${Boost_SYSTEM_LIBRARY}
    ${Boost_TIMER_LIBRARY}
)

if(CYGWIN)
    set(EXTENSION ".exe")
endif(CYGWIN)

install(FILES
    ${PROJECT_BINARY_DIR}/cxxtags_core${EXTENSION}
    ${PROJECT_SOURCE_DIR}/cxxtags
    ${PROJECT_SOURCE_DIR}/cxxtags_db_manager
    ${PROJECT_SOURCE_DIR}/cxxtags_query
    ${PROJECT_SOURCE_DIR}/cxxtags_util.py
    ${PROJECT_SOURCE_DIR}/cxxtags_run_proj
    ${PROJECT_SOURCE_DIR}/g++.py
    ${PROJECT_SOURCE_DIR}/gcc.py
    DESTINATION ${PROJECT_SOURCE_DIR}/../bin
    PERMISSIONS OWNER_READ OWNER_EXECUTE OWNER_WRITE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
{'fraction_non_alphanumeric': 0.112565445026178, 'fraction_numerical': 0.0008726003490401396, 'mean_word_length': 6.1880877742946705, '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': '2803746', 'n_tokens_mistral': 910, 'n_tokens_neox': 857, 'n_words': 122}