<commit_before># Copyright (c) 2017 <NAME>
# MIT License |  https://opensource.org/licenses/MIT
# http://vittorioromeo.info | <EMAIL>

cmake_minimum_required(VERSION 3.6)

# Include `vrm_cmake`.
list(APPEND CMAKE_MODULE_PATH
    "${CMAKE_SOURCE_DIR}/cmake/"
    "${CMAKE_SOURCE_DIR}/../vrm_cmake/cmake/"
    "${CMAKE_SOURCE_DIR}/extlibs/vrm_cmake/cmake/")

include(vrm_cmake)

# Basic project setup.
project(scelta CXX)
enable_testing()

vrm_cmake_init_project_name_upper()
vrm_cmake_init_project_source_dir()
vrm_cmake_init_project_common_module_paths()

# vrm_cmake_find_extlib(vrm_pp)
# vrm_cmake_find_extlib(vrm_core)

# Alias the include directory.
set(SCELTA_INC_DIR "${SCELTA_SOURCE_DIR}/include/")
include_directories("${SCELTA_INC_DIR}")

# Other compiler flags.
vrm_cmake_add_common_compiler_flags()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z")
vrm_cmake_add_common_compiler_flags_suggest_attribute()

# The `check` target runs all tests.
vrm_check_target()

# Setup subdirectories.
add_subdirectory(test)
add_subdirectory(example)

# Create header-only install target (automatically glob)
vrm_cmake_header_only_install_glob("${SCELTA_INC_DIR}" "include")
<commit_msg>Add a target alias for the Scelta headers target.<commit_after># Copyright (c) 2017 <NAME>
# MIT License |  https://opensource.org/licenses/MIT
# http://vittorioromeo.info | <EMAIL>

cmake_minimum_required(VERSION 3.6)

# Include `vrm_cmake`.
list(APPEND CMAKE_MODULE_PATH
    "${CMAKE_SOURCE_DIR}/cmake/"
    "${CMAKE_SOURCE_DIR}/../vrm_cmake/cmake/"
    "${CMAKE_SOURCE_DIR}/extlibs/vrm_cmake/cmake/")

include(vrm_cmake)

# Basic project setup.
project(scelta CXX)
enable_testing()

vrm_cmake_init_project_name_upper()
vrm_cmake_init_project_source_dir()
vrm_cmake_init_project_common_module_paths()

# vrm_cmake_find_extlib(vrm_pp)
# vrm_cmake_find_extlib(vrm_core)

# Alias the include directory.
set(SCELTA_INC_DIR "${SCELTA_SOURCE_DIR}/include/")
include_directories("${SCELTA_INC_DIR}")

# Other compiler flags.
vrm_cmake_add_common_compiler_flags()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1z")
vrm_cmake_add_common_compiler_flags_suggest_attribute()

# The `check` target runs all tests.
vrm_check_target()

# Setup subdirectories.
add_subdirectory(test)
add_subdirectory(example)

# Create header-only install target (automatically glob)
vrm_cmake_header_only_install_glob("${SCELTA_INC_DIR}" "include")

# Allow parent projects to depend on Scelta by adding
# `scelta::headers` to the list of target_link_libraries.
add_library( scelta::headers ALIAS HEADER_ONLY_TARGET )

{'fraction_non_alphanumeric': 0.11322217913920124, 'fraction_numerical': 0.005428460643660334, 'mean_word_length': 7.543046357615894, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4841945', 'n_tokens_mistral': 1021, 'n_tokens_neox': 980, 'n_words': 157}