<commit_before>cmake_minimum_required(VERSION 3.8.0)
set(PROJECT_NAME ns_getopt)
project(${PROJECT_NAME})

file(GLOB_RECURSE HEADER_FILES "include/ns_getopt.h")
add_library(${PROJECT_NAME} INTERFACE)
target_sources(${PROJECT_NAME} INTERFACE ${HEADER_FILES})
target_include_directories(${PROJECT_NAME} INTERFACE include/)

#set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -Wpedantic ${CMAKE_CXX_FLAGS}")

add_executable(${PROJECT_NAME}_example example/main.cpp)
target_link_libraries(${PROJECT_NAME}_example ${PROJECT_NAME})

add_executable(custom_buffer example/custom_buffer.cpp)
target_link_libraries(custom_buffer ${PROJECT_NAME})

<commit_msg>msvc : Adapt CMakeLists to msvc.<commit_after>cmake_minimum_required(VERSION 3.8.0)
set(PROJECT_NAME ns_getopt)
project(${PROJECT_NAME} CXX)

file(GLOB HEADER_FILES "include/ns_getopt.h")
add_library(${PROJECT_NAME} INTERFACE)
target_sources(${PROJECT_NAME} INTERFACE ${HEADER_FILES})
target_include_directories(${PROJECT_NAME} INTERFACE include/)

if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
	target_compile_options(${PROJECT_NAME} INTERFACE -Wall -Wextra -Wpedantic -Werror)

elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  # using GCC

elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
  # using Intel C++

elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
	target_compile_options(${PROJECT_NAME} INTERFACE /Wall)

endif()

# target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_11)
set(CMAKE_CXX_STANDARD 11)

add_executable(${PROJECT_NAME}_example example/main.cpp)
target_link_libraries(${PROJECT_NAME}_example ${PROJECT_NAME})

add_executable(custom_buffer example/custom_buffer.cpp)
target_link_libraries(custom_buffer ${PROJECT_NAME})


{'fraction_non_alphanumeric': 0.11854792966534317, 'fraction_numerical': 0.006806579693703914, 'mean_word_length': 10.529411764705882, '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': '3773527', 'n_tokens_mistral': 695, 'n_tokens_neox': 647, 'n_words': 99}