cmake_minimum_required(VERSION 3.10) project(main) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED True) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror") include_directories(src) add_definitions(-g) add_definitions(-fsanitize=address) file(GLOB SOURCES "src/*.cpp" "src/**/*.cpp") add_executable(${CMAKE_PROJECT_NAME} ${SOURCES}) target_link_libraries(${CMAKE_PROJECT_NAME} X11 GL pthread png stdc++fs) target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -fsanitize=address)