<commit_before>cmake_minimum_required (VERSION 2.8)

include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/utils.cmake)

project (ViewbackMonitor)

if (MSVC)
	set (CMAKE_EXE_LINKER_FLAGS_DEBUG				"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL /SAFESEH:NO" CACHE STRING "" FORCE)
	set (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL			"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_EXE_LINKER_FLAGS_RELEASE				"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO		"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_MODULE_LINKER_FLAGS_DEBUG			"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL /SAFESEH:NO" CACHE STRING "" FORCE)
	set (CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL		"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_MODULE_LINKER_FLAGS_RELEASE			"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO	"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_SHARED_LINKER_FLAGS_DEBUG			"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL /SAFESEH:NO" CACHE STRING "" FORCE)
	set (CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL		"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_SHARED_LINKER_FLAGS_RELEASE			"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO	"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL:NO" CACHE STRING "" FORCE)

	set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /ZI")
	set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /ZI")
endif ()

option(BUILD_ENGINE "Build Tinker's game engine and whatever games I happen to be working on" OFF)
option(WITH_NETWORKING "Build with networking enabled." ON)
option(WITH_EASTL "Use the super-fast (even in debug mode) EASTL STL library." ON)
option(WITH_ASSIMP "Use the unfortunately named AssImp library to load more formats." ON)

if (WITH_EASTL)
	add_definitions(-DWITH_EASTL)
endif (WITH_EASTL)

if (NOT WITH_NETWORKING)
	add_definitions(-DTINKER_NO_NETWORKING)
endif (NOT WITH_NETWORKING)

if (BUILD_ENGINE)
	add_definitions(-DTINKER_BUILD_ENGINE)
endif ()

if (CMAKE_COMPILER_IS_GNUCC)
	add_definitions(-std=c++0x)
endif (CMAKE_COMPILER_IS_GNUCC)

if (WIN32)
	add_definitions(-D_CRT_SECURE_NO_WARNINGS)
	add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
	add_definitions(-D_CRT_NON_CONFORMING_SWPRINTFS)
	add_definitions(-D_SCL_SECURE_NO_WARNINGS)
	add_definitions(-DEA_CHAR16_NATIVE=1)
	add_definitions(-D_UNICODE)
	add_definitions(-DFREEGLUT_STATIC)
	add_definitions(-DFTGL_LIBRARY_STATIC)
endif (WIN32)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	add_definitions(-DFCOLLADA_DLL)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

if (CMAKE_BUILD_TYPE MATCHES Debug)
	add_definitions(-D_DEBUG)
endif (CMAKE_BUILD_TYPE MATCHES Debug)

add_subdirectory (common)
add_subdirectory (tinker)
add_subdirectory (tests)

add_subdirectory (monitor)<commit_msg>Don't care about ipv6, thanks.<commit_after>cmake_minimum_required (VERSION 2.8)

include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/utils.cmake)

project (ViewbackMonitor)

if (MSVC)
	set (CMAKE_EXE_LINKER_FLAGS_DEBUG				"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL /SAFESEH:NO" CACHE STRING "" FORCE)
	set (CMAKE_EXE_LINKER_FLAGS_MINSIZEREL			"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_EXE_LINKER_FLAGS_RELEASE				"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO		"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_MODULE_LINKER_FLAGS_DEBUG			"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL /SAFESEH:NO" CACHE STRING "" FORCE)
	set (CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL		"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_MODULE_LINKER_FLAGS_RELEASE			"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO	"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_SHARED_LINKER_FLAGS_DEBUG			"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL /SAFESEH:NO" CACHE STRING "" FORCE)
	set (CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL		"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_SHARED_LINKER_FLAGS_RELEASE			"/ENTRY:mainCRTStartup /INCREMENTAL:NO" CACHE STRING "" FORCE)
	set (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO	"/ENTRY:mainCRTStartup /DEBUG /INCREMENTAL:NO" CACHE STRING "" FORCE)

	set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /ZI")
	set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /ZI")
endif ()

option(BUILD_ENGINE "Build Tinker's game engine and whatever games I happen to be working on" OFF)
option(WITH_NETWORKING "Build with networking enabled." ON)
option(WITH_EASTL "Use the super-fast (even in debug mode) EASTL STL library." ON)
option(WITH_ASSIMP "Use the unfortunately named AssImp library to load more formats." ON)

if (WITH_EASTL)
	add_definitions(-DWITH_EASTL)
endif (WITH_EASTL)

if (NOT WITH_NETWORKING)
	add_definitions(-DTINKER_NO_NETWORKING)
endif (NOT WITH_NETWORKING)

if (BUILD_ENGINE)
	add_definitions(-DTINKER_BUILD_ENGINE)
endif ()

if (CMAKE_COMPILER_IS_GNUCC)
	add_definitions(-std=c++0x)
endif (CMAKE_COMPILER_IS_GNUCC)

if (WIN32)
	add_definitions(-D_CRT_SECURE_NO_WARNINGS)
	add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
	add_definitions(-D_CRT_NON_CONFORMING_SWPRINTFS)
	add_definitions(-D_SCL_SECURE_NO_WARNINGS)
	add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS)
	add_definitions(-DEA_CHAR16_NATIVE=1)
	add_definitions(-D_UNICODE)
	add_definitions(-DFREEGLUT_STATIC)
	add_definitions(-DFTGL_LIBRARY_STATIC)
endif (WIN32)

if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	add_definitions(-DFCOLLADA_DLL)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")

if (CMAKE_BUILD_TYPE MATCHES Debug)
	add_definitions(-D_DEBUG)
endif (CMAKE_BUILD_TYPE MATCHES Debug)

add_subdirectory (common)
add_subdirectory (tinker)
add_subdirectory (tests)

add_subdirectory (monitor)
{'fraction_non_alphanumeric': 0.09466465964208061, 'fraction_numerical': 0.0035122930255895636, 'mean_word_length': 7.579626972740316, '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': '2586729', 'n_tokens_mistral': 2563, 'n_tokens_neox': 2370, 'n_words': 430}