<commit_before>cmake_minimum_required(VERSION 3.5)

project(mappable)

set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(MAPPABLE_SOURCES
    ${mappable_SOURCE_DIR}/mappable/comparable.hpp
    ${mappable_SOURCE_DIR}/mappable/contig_region.hpp
    ${mappable_SOURCE_DIR}/mappable/genomic_region.hpp
    ${mappable_SOURCE_DIR}/mappable/type_tricks.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_reference_wrapper.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_range.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_algorithms.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_flat_multi_set.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_flat_set.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_map.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_fwd.hpp
)

if (BUILD_TESTING)
    add_library(Mappable INTERFACE)
    target_sources(Mappable INTERFACE ${MAPPABLE_SOURCES})
    target_include_directories(Mappable INTERFACE ${mappable_SOURCE_DIR}/mappable)
    find_package (Boost 1.58)
    if (Boost_FOUND)
        target_include_directories (Mappable INTERFACE ${Boost_INCLUDE_DIR})
        target_link_libraries (Mappable ${Boost_LIBRARIES})
    endif (Boost_FOUND)
    add_subdirectory(test)
else()
    add_executable(example example.cpp ${MAPPABLE_SOURCES})
    find_package (Boost 1.58)
    if (Boost_FOUND)
        target_include_directories (example PUBLIC ${Boost_INCLUDE_DIR})
        target_link_libraries (example ${Boost_LIBRARIES})
    endif (Boost_FOUND)
endif(BUILD_TESTING)<commit_msg>Install example into project directory<commit_after>cmake_minimum_required(VERSION 3.5)

project(mappable)

set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(MAPPABLE_SOURCES
    ${mappable_SOURCE_DIR}/mappable/comparable.hpp
    ${mappable_SOURCE_DIR}/mappable/contig_region.hpp
    ${mappable_SOURCE_DIR}/mappable/genomic_region.hpp
    ${mappable_SOURCE_DIR}/mappable/type_tricks.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_reference_wrapper.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_range.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_algorithms.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_flat_multi_set.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_flat_set.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_map.hpp
    ${mappable_SOURCE_DIR}/mappable/mappable_fwd.hpp
)

if (BUILD_TESTING)
    add_library(Mappable INTERFACE)
    target_sources(Mappable INTERFACE ${MAPPABLE_SOURCES})
    target_include_directories(Mappable INTERFACE ${mappable_SOURCE_DIR}/mappable)
    find_package (Boost 1.58)
    if (Boost_FOUND)
        target_include_directories (Mappable INTERFACE ${Boost_INCLUDE_DIR})
        target_link_libraries (Mappable ${Boost_LIBRARIES})
    endif (Boost_FOUND)
    add_subdirectory(test)
else()
    add_executable(example example.cpp ${MAPPABLE_SOURCES})
    find_package (Boost 1.58)
    if (Boost_FOUND)
        target_include_directories (example PUBLIC ${Boost_INCLUDE_DIR})
        target_link_libraries (example ${Boost_LIBRARIES})
    endif (Boost_FOUND)
    install(TARGETS example DESTINATION ${mappable_SOURCE_DIR})
endif(BUILD_TESTING)
{'fraction_non_alphanumeric': 0.09206927985414767, 'fraction_numerical': 0.006077180188392586, 'mean_word_length': 5.815734989648033, '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': '1248232', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1215, 'n_words': 139}