-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
44 lines (37 loc) · 1.12 KB
/
CMakeLists.txt
File metadata and controls
44 lines (37 loc) · 1.12 KB
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
cmake_minimum_required(VERSION 3.16)
project(2D-Lighting)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(deps/glad)
add_executable(2D-Lighting
main.cpp
src/Game.cpp
src/Light.cpp
src/Renderer.cpp
src/Block.cpp
src/Shader.cpp
src/VertexArray.cpp
src/buffer.cpp
src/Framebuffer.cpp
src/OrthographicCamera.cpp
src/OrthographicCameraController.cpp)
include_directories(./include)
target_precompile_headers(2D-Lighting PUBLIC include/pch.h)
find_package(SFML 2.5 COMPONENTS system window graphics network audio REQUIRED)
target_link_libraries(2D-Lighting
sfml-system sfml-window sfml-graphics sfml-network sfml-audio
)
find_package(ImGui-SFML REQUIRED)
if(NOT ImGui-SFML_FOUND)
message(FATAL_ERROR "ImGui-SFML not found")
endif()
target_link_libraries(2D-Lighting
ImGui-SFML::ImGui-SFML
)
find_package(OpenGL REQUIRED)
if(NOT OpenGL_FOUND)
message(FATAL_ERROR "OpenGL not found")
endif()
target_include_directories(2D-Lighting
PUBLIC ${OPENGL_INCLUDE_DIRS}
)
target_link_libraries(2D-Lighting glad::glad)