This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
105 lines (89 loc) · 3.92 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
cmake_minimum_required(VERSION 3.21)
project(Not_this_again VERSION 0.1
DESCRIPTION "<=*_*=>"
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(USE_TRACY True)
if (USE_TRACY)
#add_definitions(-DTRACY_HAS_CALLSTACK)
#add_definitions(-DTRACY_CALLSTACK)
add_definitions(-DTRACY_ENABLE)
endif()
add_definitions(-DSPDLOG_COMPILED_LIB)
add_definitions(-DPLATFORM_WIN64)
add_definitions(
-Wno-deprecated-volatile
-Wno-deprecated-declarations
-Wno-invalid-offsetof)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDEBUG)
endif()
include_directories(
"${CMAKE_SOURCE_DIR}/src"
"${CMAKE_SOURCE_DIR}/deps/SPIRV-Cross-moltenvk_1.1.5/include"
"${CMAKE_SOURCE_DIR}/deps/argparse/include"
"${CMAKE_SOURCE_DIR}/deps/boost-1.77/include"
"${CMAKE_SOURCE_DIR}/deps/dxc/include"
"${CMAKE_SOURCE_DIR}/deps/eastl/include"
"${CMAKE_SOURCE_DIR}/deps/freetype-2.12.1/include"
"${CMAKE_SOURCE_DIR}/deps/function2/include"
"${CMAKE_SOURCE_DIR}/deps/glm-0.9.9.8/include"
"${CMAKE_SOURCE_DIR}/deps/gtest/include"
"${CMAKE_SOURCE_DIR}/deps/imgui-node-editor/src"
"${CMAKE_SOURCE_DIR}/deps/imgui/src"
"${CMAKE_SOURCE_DIR}/deps/ktx-4.0.0/include"
"${CMAKE_SOURCE_DIR}/deps/quickjs/include"
"${CMAKE_SOURCE_DIR}/deps/spdlog/include"
"${CMAKE_SOURCE_DIR}/deps/tinygltf-2.5.0/include"
"${CMAKE_SOURCE_DIR}/deps/tracy/include"
"${CMAKE_SOURCE_DIR}/deps/vma/include"
"${CMAKE_SOURCE_DIR}/deps/vulkan-1.3.216.0/include"
"${CMAKE_SOURCE_DIR}/deps/xxhash/include"
"${CMAKE_SOURCE_DIR}/deps/zpp_bits/include"
)
link_directories(
"${CMAKE_SOURCE_DIR}/deps/dxc"
"${CMAKE_SOURCE_DIR}/deps/freetype-2.12.1/win64"
"${CMAKE_SOURCE_DIR}/deps/ktx-4.0.0/win64"
"${CMAKE_SOURCE_DIR}/deps/quickjs/win64"
"${CMAKE_SOURCE_DIR}/deps/vulkan-1.3.216.0/win64/"
"${CMAKE_SOURCE_DIR}/deps/xxhash/win64"
)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
link_directories("${CMAKE_SOURCE_DIR}/deps/eastl/win64/debug")
link_directories("${CMAKE_SOURCE_DIR}/deps/spdlog/win64/debug")
link_directories("${CMAKE_SOURCE_DIR}/deps/vma/win64/debug")
else()
link_directories("${CMAKE_SOURCE_DIR}/deps/eastl/win64/release")
link_directories("${CMAKE_SOURCE_DIR}/deps/spdlog/win64/release")
link_directories("${CMAKE_SOURCE_DIR}/deps/vma/win64/release")
endif ()
#workaround for dxcompiler linkage
configure_file("${CMAKE_SOURCE_DIR}/deps/dxc/win64/dxcompiler.lib" "${CMAKE_BINARY_DIR}/dxcompiler.lib" COPYONLY)
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/assets")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/components")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/console")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/data")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/ecs")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/editor")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/fs")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/gapi")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/gui")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/input")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/input/drivers")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/qjs")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/reflection")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/render")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/scene")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/tfx")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/utils")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/engine/work_cycle")
add_subdirectory("${CMAKE_SOURCE_DIR}/deps/SPIRV-Cross-moltenvk_1.1.5/src")
add_subdirectory("${CMAKE_SOURCE_DIR}/deps/imgui-node-editor/src/imgui-node-editor")
add_subdirectory("${CMAKE_SOURCE_DIR}/deps/imgui/src/imgui")
add_subdirectory("${CMAKE_SOURCE_DIR}/deps/tracy/src")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/shaders_compiler")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/tests")
add_subdirectory("${CMAKE_SOURCE_DIR}/src/aster")