-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
37 lines (26 loc) · 1000 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 Setup
# #####################################
cmake_minimum_required(VERSION 3.18)
project(SoftLight)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_EXTENSIONS OFF)
# #####################################
# Global compile options
# #####################################
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
# #####################################
# 3rd-party libraries
# #####################################
include(external_deps.cmake)
# #####################################
# Internal Libraries
# #####################################
add_subdirectory(light_setup) # top-level
add_subdirectory(light_utils) # depends on light_setup
add_subdirectory(light_math) # depends on light_setup
add_subdirectory(light_script) # independent
add_subdirectory(light_game) # independent
add_subdirectory(softlight) # depends on all submodules