-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (33 loc) · 1.15 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.6)
project(NuakeRenderer)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../cmake/modules/" ${CMAKE_MODULE_PATH})
set(GLAD_LIB_DIR glad)
set(HEADERS
NuakeRenderer/NuakeRenderer.h NuakeRenderer/Window.h
NuakeRenderer/Math.h
NuakeRenderer/VertexBuffer.h
NuakeRenderer/VertexArray.h
NuakeRenderer/VertexBufferLayout.h
NuakeRenderer/Shader.h
NuakeRenderer/ShaderRegistry.h
NuakeRenderer/Texture.h
NuakeRenderer/Framebuffer.h
NuakeRenderer/SSBO.h
NuakeRenderer/UniformBuffer.h
NuakeRenderer/Vendors/stb_image.h
)
set(SOURCES
NuakeRenderer/NuakeRenderer.cpp NuakeRenderer/Window.cpp
NuakeRenderer/Vendors/glm/glm/glm.hpp
NuakeRenderer/VertexBuffer.cpp NuakeRenderer/VertexArray.cpp
NuakeRenderer/ShaderRegistry.cpp
NuakeRenderer/Shader.cpp
NuakeRenderer/Texture.cpp
NuakeRenderer/Framebuffer.cpp
NuakeRenderer/SSBO.cpp
NuakeRenderer/UniformBuffer.cpp
)
add_subdirectory(./Dependencies ${CMAKE_CURRET_BINARY_DIR}/Dependencies)
add_library(NuakeRenderer STATIC ${SOURCES} ${HEADERS})
target_include_directories(NuakeRenderer PUBLIC Dependencies/glad/include)
target_link_libraries(NuakeRenderer PUBLIC glad glfw imgui)