<commit_before>cmake_minimum_required(VERSION 3.6)

set(CMAKE_CXX_STANDARD 11)

set(src
    c4/allocator.hpp
    c4/common.hpp
    c4/compiler.hpp
    c4/config.hpp
    c4/cpu.hpp
    c4/ctor_dtor.hpp
    c4/error.cpp
    c4/error.hpp
    c4/language.hpp
    c4/language.cpp
    c4/log.cpp
    c4/log.hpp
    c4/memory_resource.cpp
    c4/memory_resource.hpp
    c4/memory_util.cpp
    c4/memory_util.hpp
    c4/platform.hpp
    c4/preprocessor.hpp
    c4/span.hpp
    c4/sstream.hpp
    c4/sstream.def.hpp
    c4/sstream.cpp
    c4/time.hpp
    c4/time.cpp
    c4/types.hpp
    c4/windows.hpp
)

create_source_group("src" "${CMAKE_CURRENT_SOURCE_DIR}" "${src}")

if(MSVC)
	list(APPEND src c4stl.natvis)
endif()

add_library(c4stl ${src})
target_include_directories(c4stl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

#------------------------------------------------------------------------------
set(C4STL_EXTERN_DIR ${CMAKE_INSTALL_PREFIX} CACHE PATH "")
<commit_msg>vs: put the source files tree at the project root<commit_after>cmake_minimum_required(VERSION 3.6)

set(CMAKE_CXX_STANDARD 11)

set(src
    c4/allocator.hpp
    c4/common.hpp
    c4/compiler.hpp
    c4/config.hpp
    c4/cpu.hpp
    c4/ctor_dtor.hpp
    c4/error.cpp
    c4/error.hpp
    c4/language.hpp
    c4/language.cpp
    c4/log.cpp
    c4/log.hpp
    c4/memory_resource.cpp
    c4/memory_resource.hpp
    c4/memory_util.cpp
    c4/memory_util.hpp
    c4/platform.hpp
    c4/preprocessor.hpp
    c4/span.hpp
    c4/sstream.hpp
    c4/sstream.def.hpp
    c4/sstream.cpp
    c4/time.hpp
    c4/time.cpp
    c4/types.hpp
    c4/windows.hpp
)

create_source_group("" "${CMAKE_CURRENT_SOURCE_DIR}" "${src}")

if(MSVC)
	list(APPEND src c4stl.natvis)
endif()

add_library(c4stl ${src})
target_include_directories(c4stl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

#------------------------------------------------------------------------------
set(C4STL_EXTERN_DIR ${CMAKE_INSTALL_PREFIX} CACHE PATH "")

{'fraction_non_alphanumeric': 0.1846547314578005, 'fraction_numerical': 0.034782608695652174, 'mean_word_length': 2.26, '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': '1259576', 'n_tokens_mistral': 796, 'n_tokens_neox': 769, 'n_words': 105}