2023-09-17 17:56:25 +00:00
|
|
|
cmake_minimum_required(VERSION 3.20)
|
|
|
|
set(CMAKE_C_STANDARD 17)
|
|
|
|
set(CMAKE_C_STANDARD_REQUIRED True)
|
|
|
|
|
2023-09-17 20:18:15 +00:00
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
|
2023-09-17 17:56:25 +00:00
|
|
|
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/
|
|
|
|
)
|
|
|
|
|