<commit_before>cmake_minimum_required(VERSION 2.6)

project (YAML_CPP)

enable_testing()

set(LIBRARY_OUTPUT_PATH lib${LIB_SUFFIX})
set(LIB_INSTALL_DIR lib${LIB_SUFFIX})
set(INCLUDE_INSTALL_DIR include/yaml-cpp)

file(GLOB public_headers include/*.h)
file(GLOB private_headers src/*.h)
file(GLOB sources src/*.cpp)

include_directories(${YAML_CPP_SOURCE_DIR}/include)
add_library(yaml-cpp
	${public_headers}
	${private_headers}
	${sources}
)

install(
	TARGETS yaml-cpp
	LIBRARY ARCHIVE
	DESTINATION ${LIB_INSTALL_DIR}
)
install(
	FILES ${public_headers}
	DESTINATION ${INCLUDE_INSTALL_DIR}
)

add_subdirectory (yaml-reader)<commit_msg>Patched CMake file to allow flexibility in build (in particular to allow shared lib build)<commit_after>cmake_minimum_required(VERSION 2.6)

project (YAML_CPP)

enable_testing()

if(WIN32)
  set(_library_dir bin) # .dll are in PATH, like executables
else(WIN32)
  set(_library_dir lib)
endif(WIN32)
#
set(_INSTALL_DESTINATIONS
	RUNTIME DESTINATION bin
	LIBRARY DESTINATION ${_library_dir}${LIB_SUFFIX} 
	ARCHIVE DESTINATION lib${LIB_SUFFIX}
)
#
set(INCLUDE_INSTALL_DIR include/yaml-cpp)

file(GLOB public_headers include/*.h)
file(GLOB private_headers src/*.h)
file(GLOB sources src/*.cpp)

include_directories(${YAML_CPP_SOURCE_DIR}/include)
add_library(yaml-cpp
	${public_headers}
	${private_headers}
	${sources}
)

install(TARGETS yaml-cpp ${_INSTALL_DESTINATIONS})
install(
	FILES ${public_headers}
	DESTINATION ${INCLUDE_INSTALL_DIR}
)

add_subdirectory (yaml-reader)
{'fraction_non_alphanumeric': 0.11007957559681697, 'fraction_numerical': 0.006631299734748011, 'mean_word_length': 7.52542372881356, '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': '452440', 'n_tokens_mistral': 595, 'n_tokens_neox': 547, 'n_words': 106}