<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(modes_rx_db_2_gpx)

FIND_PATH( SQLITE3_INCLUDE_DIR sqlite3.h )
FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3 )


FIND_PACKAGE( Boost 1.40 COMPONENTS program_options REQUIRED )


FIND_PATH( LIBXML_INCLUDE_DIR xmlversion.h )
MESSAGE(STATUS "LIBXML_INCLUDE_DIR = ${LIBXML_INCLUDE_DIR}" )

FIND_LIBRARY(LIBXML_LIBRARY NAMES xml2 )
MESSAGE(STATUS "LIBXML_LIBRARY = ${LIBXML_LIBRARY}")

INCLUDE_DIRECTORIES( ${SQLITE3_INCLUDE_DIR} ${LIBXML_INCLUDE_DIR} ${Boost_INCLUDE_DIR} )

ADD_EXECUTABLE( modes_rx_db_2_gpx src/modes_rx_db_2_gpx.cc )

TARGET_LINK_LIBRARIES( modes_rx_db_2_gpx ${SQLITE3_LIBRARY} ${LIBXML_LIBRARY} ${Boost_LIBRARIES} )<commit_msg>Fix bug were CMake could not find libxml2 on different machine<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(modes_rx_db_2_gpx)

FIND_PATH( SQLITE3_INCLUDE_DIR sqlite3.h )
FIND_LIBRARY(SQLITE3_LIBRARY NAMES sqlite3 )


FIND_PACKAGE( Boost 1.40 COMPONENTS program_options REQUIRED )

FIND_PACKAGE( LibXml2  REQUIRED )


INCLUDE_DIRECTORIES( ${SQLITE3_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR} ${Boost_INCLUDE_DIR} )

ADD_EXECUTABLE( modes_rx_db_2_gpx src/modes_rx_db_2_gpx.cc )

TARGET_LINK_LIBRARIES( modes_rx_db_2_gpx ${SQLITE3_LIBRARY} ${LIBXML2_LIBRARIES} ${Boost_LIBRARIES} )
{'fraction_non_alphanumeric': 0.08326848249027237, 'fraction_numerical': 0.027237354085603113, 'mean_word_length': 9.125984251968504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '2074863', 'n_tokens_mistral': 599, 'n_tokens_neox': 528, 'n_words': 79}