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-07 13:10:23 +01:00
|
|
|
find_package(glm REQUIRED)
|
2019-12-13 13:40:41 +01:00
|
|
|
|
2020-01-15 17:16:55 +01:00
|
|
|
add_executable(ecsgame Util/glad.c Util/OBJ_Loader.h Rendering/Shader.cpp Rendering/Shader.h main.cpp ECS/Components/Transform.h ECS/Components/Movement.h ECS/Events/InputEvent.h ECS/Events/MouseMoveEvent.h ECS/Systems/GravitySystem.h ECS/Systems/PositionDebugSystem.h ECS/Systems/KeyboardMovementSystem.h ECS/Components/Camera.h ECS/Systems/RenderSystem.h ECS/Components/Mesh.h ECS/Systems/MouseLookSystem.h ECS/Components/MouseLook.h ECS/Components/ObjMesh.h Util/stb_setup.cpp ECS/Components/Texture.h ECS/Components/LODObjMesh.h ECS/Components/SineAnimation.h ECS/Systems/SineAnimationSystem.h ECS/Components/DirectionalLight.h)
|
2019-12-13 13:40:41 +01:00
|
|
|
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIRS})
|
|
|
|
|
2020-01-07 13:10:23 +01:00
|
|
|
target_link_libraries(ecsgame ${OPENGL_LIBRARY} glfw glm ${CMAKE_DL_LIBS})
|