-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
52 lines (48 loc) · 1.7 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
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.25)
project(hazor)
set(CMAKE_CXX_STANDARD 23)
find_package(sol2 CONFIG REQUIRED)
find_package(Lua REQUIRED)
find_package(glfw3 REQUIRED)
find_package(glew REQUIRED)
find_package(OpenGL REQUIRED)
find_package(glm REQUIRED)
find_package(CMakeRC CONFIG REQUIRED)
find_package(assimp REQUIRED)
add_library(hazor
include/Mesh.hpp
include/Util.hpp
include/Scene.hpp
include/Transform.hpp
include/RenderingHandles.hpp
include/Initializations.hpp
include/rendering_internals/VertexBuffer.hpp
include/rendering_internals/Framebuffer.hpp
include/rendering_internals/Shader.hpp
include/rendering_internals/Shader.cpp
include/rendering_internals/VertexArray.hpp
include/rendering_internals/ElementBuffer.hpp
include/rendering_internals/GPUMesh.hpp
include/FileLoading.hpp
src/FileLoading.cpp
include/Renderable.hpp
include/Camera.hpp
include/MeshLoading.hpp
src/MeshLoading.cpp
include/Moving.hpp)
target_link_libraries(hazor PUBLIC sol2)
target_link_libraries(hazor PUBLIC ${LUA_LIBRARIES})
target_link_libraries(hazor PUBLIC glfw)
target_link_libraries(hazor PUBLIC GLEW::glew)
target_link_libraries(hazor PUBLIC OpenGL::GL)
target_link_libraries(hazor PUBLIC glm::glm)
target_link_libraries(hazor PUBLIC assimp::assimp)
target_include_directories(hazor PUBLIC ${LUA_INCLUDE_DIR})
target_include_directories(hazor PUBLIC include)
cmrc_add_resource_library(hazor-resources NAMESPACE tel::data
WHENCE data
data/shaders/Main.vert
data/shaders/Main.frag
data/Test.obj
)
target_link_libraries(hazor PUBLIC hazor-resources)