-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
53 lines (43 loc) · 1.29 KB
/
CMakeLists.txt
File metadata and controls
53 lines (43 loc) · 1.29 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
45
46
47
48
49
50
51
52
53
# ==============================
# Nous Engine - Root CMakeLists
# ==============================
cmake_minimum_required(VERSION 3.21...3.30)
# Modern CMake policies
cmake_policy(SET CMP0077 NEW)
cmake_policy(SET CMP0091 NEW)
cmake_policy(SET CMP0111 NEW)
# ==============================
# Project Metadata
# ==============================
set(PROJECT_NAME "Nous-Engine")
set(EDITOR_NAME "Nous-Editor")
project(${PROJECT_NAME}
VERSION 0.4.0
LANGUAGES CXX
DESCRIPTION "A multithreaded, Vulkan-based game engine"
)
# ==============================
# Includes (CMake modules)
# ==============================
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Config")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Functions")
include(GlobalSettings)
include(ProfilingOptions)
include(UnitTests)
include(Messages)
# ==============================
# Post-Build Tasks
# ==============================
include(AssetsCopy)
copy_assets()
# ==============================
# Add Engine Sources
# ==============================
add_subdirectory(Source)
if(TARGET EditorApp)
add_dependencies(EditorApp Scripts) # Optional: If we want to ensure scripts compile before run
endif()
# ==============================
# Summary
# ==============================
print_build_summary()