-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
71 lines (58 loc) · 1.58 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright (C) 2019 by Ilya Glushchenko
# This code is licensed under the MIT license (MIT)
# (http://opensource.org/licenses/MIT)
cmake_minimum_required (VERSION 3.1)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(SimpleRendererConfig)
project(${SIMPLE_RENDERER_NAME})
set(CMAKE_CXX_STANDARD 17)
#GLFW
include(GlfwConfig)
add_subdirectory(${GLFW_SOURCE_DIR})
include_directories(${GLFW_INCLUDE_DIR})
#GLBINDING
include(GlbindingConfig)
list(APPEND CMAKE_MODULE_PATH "${GLBINDING_SOURCE_DIR}/third_party/glbinding/cmake")
add_subdirectory(${GLBINDING_SOURCE_DIR})
include_directories(${GLBINDING_INCLUDE_DIR})
#STB
include(StbConfig)
include_directories(${STB_INCLUDE_DIR})
#TinyOBJLoader
include(TinyObjLoaderConfig)
add_subdirectory(${TINY_OBJ_LOADER_ROOT_DIR})
include_directories(${TINY_OBJ_LOADER_INCLUDE_DIR})
#ImGui
include(ImguiConfig)
include_directories(${IMGUI_INCLUDE_DIRS})
#Target
include_directories(
${SIMPLE_RENDERER_INCLUDE_DIR}
)
set(SIMPLE_REDNERER_HEADERS
include/RenderConfiguration.hpp
include/RenderDefinitions.hpp
include/RenderPass.hpp
include/RenderPipeline.hpp
include/RenderModel.hpp
include/ShaderProgram.hpp
include/Camera.hpp
include/TestModels.hpp
include/Texture.hpp
include/Math.hpp
include/Loader.hpp
include/Geometry.hpp
include/Input.hpp
)
set(SIMPLE_RENDERER_SOURCES
source/Main.cpp
)
add_executable (${PROJECT_NAME}
${SIMPLE_REDNERER_HEADERS}
${SIMPLE_RENDERER_SOURCES}
${IMGUI_SOURCES}
)
target_link_libraries(${PROJECT_NAME}
${GLBINDING_LIB}
${GLFW_LIB}
)