-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (31 loc) · 837 Bytes
/
CMakeLists.txt
File metadata and controls
38 lines (31 loc) · 837 Bytes
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
cmake_minimum_required(VERSION 3.30)
project(3DGameEngine)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_executable(3DGameEngine WIN32
main.cpp
engine/platform/Window.h
engine/platform/Window.cpp
engine/core/Engine/Engine.cpp
engine/core/Engine/Engine.h
engine/core/Logger.h
engine/math/scalar.h
)
# ---- Windows SDK (DirectX 11) ----
set(WIN_SDK "C:/Program Files (x86)/Windows Kits/10")
target_include_directories(3DGameEngine PRIVATE
"${WIN_SDK}/Include/um"
"${WIN_SDK}/Include/shared"
)
target_link_directories(3DGameEngine PRIVATE
"${WIN_SDK}/Lib/x64/um"
)
target_link_libraries(3DGameEngine
d3d11
dxgi
d3dcompiler
)
target_compile_definitions(3DGameEngine PRIVATE
UNICODE
_UNICODE
)