To support work with font search, std::filesystem is used, which is implemented in sufficient form inVisual C++, but not in GCC 8.2, so boost::filesystem is used to support filesystem!
# download boost (https://www.boost.org) and go to the folder # with boost and run the next command./b2# The compilation of boost is quite long, so be patient.
Setting SDL2 & SDL2_image & SDL2_ttf & SDL_gfx
# On Linuxsudoaptinstallbuild-essentialcmakelibsdl2-devlibsdl2-image-devlibsdl2-ttf-devlibsdl2-gfx-dev# On Window# Download from # 1. https://www.libsdl.org/# 2. https://www.libsdl.org/tmp/SDL_ttf/# 3. https://www.libsdl.org/tmp/SDL_image/# 4. http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/# and unzip folders to your convenience.# note: SDL2_gfx must be manually assembled.
Preparation
gitclonehttps://github.com/i582/component-sdl2.gitcdcomponent-sdl2gitclonehttps://github.com/aminosbh/sdl2-cmake-modulesmvsdl2-cmake-modulescmakecdtestgitclonehttps://github.com/google/googletest# for Window# In CMakeLists.txt, write the paths to the folders with SDL2.cd../mkdirbuildcdbuildcmake..cmake..cmake..cmake..cmakebuild.