cmake_minimum_required(VERSION 3.20) set(CMAKE_C_STANDARD 17) set(CMAKE_C_STANDARD_REQUIRED True) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) project(Tetris) add_executable(Tetris src/tetris.c src/gl.c) find_package(glfw3 3.3 REQUIRED) target_link_libraries(Tetris glfw) find_package(OpenGL REQUIRED) target_link_libraries(Tetris OpenGL::GL) target_include_directories(Tetris PUBLIC include/ )