-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (33 loc) · 856 Bytes
/
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
cmake_minimum_required(VERSION 3.31.2)
project(glEngine)
set(CMAKE_CXX_STANDARD 11)
add_executable(${PROJECT_NAME}
src/main.cpp
src/IndexBuffer.cpp
src/VertexBuffer.cpp
src/Renderer.cpp
src/VertexArray.cpp
src/Shader.cpp
src/Texture.cpp
)
add_subdirectory(lib)
add_subdirectory(external/glfw)
add_subdirectory(external/glew)
add_subdirectory(external/stb_image)
add_subdirectory(external/glm)
add_subdirectory(external/imgui)
target_include_directories(${PROJECT_NAME}
PUBLIC lib
PUBLIC external/glfw/include
PUBLIC external/glew/include
PUBLIC external/glm/glm
PUBLIC external/stb_image
PUBLIC external/imgui
PUBLIC src)
target_link_libraries(${PROJECT_NAME}
PRIVATE library
PRIVATE glfw
PRIVATE glm
PRIVATE stb_im
PRIVATE imgui
PRIVATE libglew_static)