<commit_before>cmake_minimum_required (VERSION 2.6)

project (ZAssetPackage)

# Version number
set (VERSION_MAJOR 0)
set (VERSION_MINOR 1)
set (VERSION_PATCH 0)

#option (BUILD_SHARED_LIBS "Build shared libs" OFF)
option (ZAP_BUILD_DOC "Generate documentation" OFF)

# Compression support
option (ZAP_COMPRESS_LZ4 "LZ4 compression support" ON)

set (INCROOT "${PROJECT_SOURCE_DIR}/include/ZAP")
set (SRCROOT "${PROJECT_SOURCE_DIR}/src")
set (DEPROOT "${PROJECT_SOURCE_DIR}/deps")

include_directories ("${PROJECT_SOURCE_DIR}/include")
include_directories ("${DEPROOT}")

configure_file ("${INCROOT}/Config.h.in" "${PROJECT_BINARY_DIR}/include/Config.h")
include_directories ("${PROJECT_BINARY_DIR}/include")

set (SRC
	"${SRCROOT}/Archive.cpp"
	"${INCROOT}/Archive.h"
	"${SRCROOT}/ArchiveBuilder.cpp"
	"${INCROOT}/ArchiveBuilder.h"
	"${SRCROOT}/Compression.cpp"
	"${INCROOT}/Compression.h"
	"${INCROOT}/DataPointer.h"
	"${INCROOT}/Version.h"
)
source_group ("zap" FILES ${SRC})

if (ZAP_COMPRESS_LZ4)
	set (SRC_LZ4
		"${DEPROOT}/lz4/lz4.c"
		"${DEPROOT}/lz4/lz4.h"
		"${DEPROOT}/lz4/lz4hc.c"
		"${DEPROOT}/lz4/lz4hc.h"
	)
	set (SRC ${SRC} ${SRC_LZ4})
	source_group ("lz4" FILES ${SRC_LZ4})
endif ()

set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")

add_library (ZAP STATIC ${SRC})

if (ZAP_BUILD_DOC)
	add_subdirectory (doc)
endif ()<commit_msg>Added C++11 compiler flags for GCC<commit_after>cmake_minimum_required (VERSION 2.6)

project (ZAssetPackage)

# Version number
set (VERSION_MAJOR 0)
set (VERSION_MINOR 1)
set (VERSION_PATCH 0)

#option (BUILD_SHARED_LIBS "Build shared libs" OFF)
option (ZAP_BUILD_DOC "Generate documentation" OFF)

# Compression support
option (ZAP_COMPRESS_LZ4 "LZ4 compression support" ON)

set (INCROOT "${PROJECT_SOURCE_DIR}/include/ZAP")
set (SRCROOT "${PROJECT_SOURCE_DIR}/src")
set (DEPROOT "${PROJECT_SOURCE_DIR}/deps")

include_directories ("${PROJECT_SOURCE_DIR}/include")
include_directories ("${DEPROOT}")

configure_file ("${INCROOT}/Config.h.in" "${PROJECT_BINARY_DIR}/include/Config.h")
include_directories ("${PROJECT_BINARY_DIR}/include")

set (SRC
	"${SRCROOT}/Archive.cpp"
	"${INCROOT}/Archive.h"
	"${SRCROOT}/ArchiveBuilder.cpp"
	"${INCROOT}/ArchiveBuilder.h"
	"${SRCROOT}/Compression.cpp"
	"${INCROOT}/Compression.h"
	"${INCROOT}/DataPointer.h"
	"${INCROOT}/Version.h"
)
source_group ("zap" FILES ${SRC})

if (ZAP_COMPRESS_LZ4)
	set (SRC_LZ4
		"${DEPROOT}/lz4/lz4.c"
		"${DEPROOT}/lz4/lz4.h"
		"${DEPROOT}/lz4/lz4hc.c"
		"${DEPROOT}/lz4/lz4hc.h"
	)
	set (SRC ${SRC} ${SRC_LZ4})
	source_group ("lz4" FILES ${SRC_LZ4})
endif ()

set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/lib")

add_library (ZAP STATIC ${SRC})

if (CMAKE_COMPILER_IS_GNUCXX)
	set_target_properties (ZAP PROPERTIES COMPILE_FLAGS "-std=c++11 -Wno-multichar")
endif ()

if (ZAP_BUILD_DOC)
	add_subdirectory (doc)
endif ()
{'fraction_non_alphanumeric': 0.1637352094659418, 'fraction_numerical': 0.014070994563479372, 'mean_word_length': 7.041131105398458, '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': '452450', 'n_tokens_mistral': 1336, 'n_tokens_neox': 1302, 'n_words': 218}