2019-12-13 13:26:18 +01:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(ecsgame)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
2019-12-13 13:40:41 +01:00
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
find_package(glfw3 REQUIRED)
|
|
|
|
|
2020-01-03 21:51:30 +01:00
|
|
|
add_executable(ecsgame glad.c main.cpp Shader.cpp Shader.h)
|
2019-12-13 13:40:41 +01:00
|
|
|
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIRS})
|
|
|
|
|
2020-01-03 21:41:23 +01:00
|
|
|
target_link_libraries(ecsgame ${OPENGL_LIBRARY} glfw ${CMAKE_DL_LIBS})
|