<commit_before>cmake_minimum_required(VERSION 3.3)

project(3dparty)

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
  set(LIBS_INSTALL_SUFFIX /x64)
else()
  set(LIBS_INSTALL_SUFFIX /x86)
endif()

if(WIN32)
	set(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:\"LIBCMT\")
endif()

# TODO: Add check if solution generates for Visual Studio
#set(PDB_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/install/${LIBS_INSTALL_SUFFIX}/lib CACHE PATH "Set path to store PDB files")
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install/${LIBS_INSTALL_SUFFIX}/ CACHE PATH "Set install prefix" FORCE)


set(gtest_force_shared_crt ON CACHE BOOL "Force shared crt")
set(BUILD_TESTING OFF CACHE BOOL "Don't build tests")

# Add SDL2
set(SDL_DIRECTX OFF CACHE BOOL "Don't use DirectX")
set(SDL_RENDER_D3D OFF CACHE BOOL "Don't use DirectX render")
set(SDL_SHARED OFF CACHE BOOL "Don't build shared library")
add_subdirectory(sdl)

# Add RapidJson
set(RAPIDJSON_HAS_STDSTRING ON CACHE BOOL "Enable sdt::string in RapidJson")
set(RAPIDJSON_BUILD_EXAMPLES OFF CACHE BOOL "Disable building examples for RapidJSON")
set(RAPIDJSON_BUILD_DOC OFF CACHE BOOL "Disable building RapidJson documentation")
set(RAPIDJSON_BUILD_TESTS OFF CACHE BOOL "Disable building RapidJson tests")
add_subdirectory(rapidjson)

# Add EntityX
set(ENTITYX_BUILD_TESTING OFF CACHE BOOL "Disable test building for EntityX")
add_subdirectory(entityx)

# Add Easyloggingpp
add_subdirectory(easyloggingpp)

# Add cppformat
set(FMT_DOC OFF CACHE BOOL "Don't generate cppformat documentation for cppformat")
set(FMT_TEST OFF CACHE BOOL "Disable test building for cppformat")
add_subdirectory(cppformat)

# Add Eigen
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/eigen/cmake")<commit_msg>Fix bug with invalid Eigen installation<commit_after>cmake_minimum_required(VERSION 3.3)

project(3dparty)

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
  set(LIBS_INSTALL_SUFFIX /x64)
else()
  set(LIBS_INSTALL_SUFFIX /x86)
endif()

if(WIN32)
	set(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:\"LIBCMT\")
endif()

# TODO: Add check if solution generates for Visual Studio
#set(PDB_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/install/${LIBS_INSTALL_SUFFIX}/lib CACHE PATH "Set path to store PDB files")
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install/${LIBS_INSTALL_SUFFIX}/ CACHE PATH "Set install prefix" FORCE)


set(gtest_force_shared_crt ON CACHE BOOL "Force shared crt")
set(BUILD_TESTING OFF CACHE BOOL "Don't build tests")

# Add SDL2
set(SDL_DIRECTX OFF CACHE BOOL "Don't use DirectX")
set(SDL_RENDER_D3D OFF CACHE BOOL "Don't use DirectX render")
set(SDL_SHARED OFF CACHE BOOL "Don't build shared library")
add_subdirectory(sdl)

# Add RapidJson
set(RAPIDJSON_HAS_STDSTRING ON CACHE BOOL "Enable sdt::string in RapidJson")
set(RAPIDJSON_BUILD_EXAMPLES OFF CACHE BOOL "Disable building examples for RapidJSON")
set(RAPIDJSON_BUILD_DOC OFF CACHE BOOL "Disable building RapidJson documentation")
set(RAPIDJSON_BUILD_TESTS OFF CACHE BOOL "Disable building RapidJson tests")
add_subdirectory(rapidjson)

# Add EntityX
set(ENTITYX_BUILD_TESTING OFF CACHE BOOL "Disable test building for EntityX")
set(ENTITYX_BUILD_SHARED OFF CACHE BOOL "Disable building shared version of EntityX")
add_subdirectory(entityx)

# Add Easyloggingpp
add_subdirectory(easyloggingpp)

# Add cppformat
set(FMT_DOC OFF CACHE BOOL "Don't generate cppformat documentation for cppformat")
set(FMT_TEST OFF CACHE BOOL "Disable test building for cppformat")
add_subdirectory(cppformat)

# Add Eigen
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/eigen/cmake")
# Workaround for Eigen
set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "Set install prefix for includes" FORCE)
{'fraction_non_alphanumeric': 0.08053508053508053, 'fraction_numerical': 0.006552006552006552, 'mean_word_length': 7.5807962529274, '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': '7282060', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1258, 'n_words': 349}