<commit_before>cmake_minimum_required(VERSION 2.6)
project(c10t)

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules;${CMAKE_MODULE_PATH}")

# attempt to find out which revision we are building from
set(C10T_VERSION "SNAPSHOT")
set(C10T_SITE "http://github.com/udoprog/c10t")
set(C10T_CONTACT "Udoprog <<EMAIL>> et. al (see README)")

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/config.h)

# output the binary to the current directory instead of in src/
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})

find_package(ZLIB REQUIRED)
find_package(PNG REQUIRED)
find_package(FreeType REQUIRED)
find_package(Threads REQUIRED)
find_package(Boost COMPONENTS thread filesystem system REQUIRED)

include_directories(${ZLIB_INCLUDE_DIR})
include_directories(${PNG_INCLUDE_DIR})
include_directories(${FREETYPE_INCLUDE_DIR_freetype2})
include_directories(${FREETYPE_INCLUDE_DIR_ft2build})
include_directories(${Boost_INCLUDE_DIR})

set(c10t_LIBRARIES ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
set(c10t_LIBRARIES ${c10t_LIBRARIES} ${Boost_LIBRARIES} ${FREETYPE_LIBRARY})

# set(Boost_DEBUG TRUE)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/")

add_subdirectory(src)
add_subdirectory(test)<commit_msg>enabled out of tree cmake builds.<commit_after>cmake_minimum_required(VERSION 2.6)
project(c10t)

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules;${CMAKE_MODULE_PATH}")

# attempt to find out which revision we are building from
set(C10T_VERSION "SNAPSHOT")
set(C10T_SITE "http://github.com/udoprog/c10t")
set(C10T_CONTACT "Udoprog <<EMAIL>> et. al (see README)")

configure_file(${CMAKE_SOURCE_DIR}/src/config.h.cmake ${CMAKE_BINARY_DIR}/src/config.h)
include_directories(${CMAKE_BINARY_DIR}/src)

# output the binary to the build directory instead of in src/
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

find_package(ZLIB REQUIRED)
find_package(PNG REQUIRED)
find_package(FreeType REQUIRED)
find_package(Threads REQUIRED)
find_package(Boost COMPONENTS thread filesystem system REQUIRED)

include_directories(${ZLIB_INCLUDE_DIR})
include_directories(${PNG_INCLUDE_DIR})
include_directories(${FREETYPE_INCLUDE_DIR_freetype2})
include_directories(${FREETYPE_INCLUDE_DIR_ft2build})
include_directories(${Boost_INCLUDE_DIR})

set(c10t_LIBRARIES ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
set(c10t_LIBRARIES ${c10t_LIBRARIES} ${Boost_LIBRARIES} ${FREETYPE_LIBRARY})

# set(Boost_DEBUG TRUE)
include_directories("${CMAKE_SOURCE_DIR}/src/")

#copy font.ttg to build directory as matter of convenience.
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/font.ttf ${CMAKE_BINARY_DIR}/font.ttf)

add_subdirectory(src)
add_subdirectory(test)
{'fraction_non_alphanumeric': 0.11107130060910068, 'fraction_numerical': 0.014331780723754926, 'mean_word_length': 10.731092436974789, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '54168', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1048, 'n_words': 166}