/
CMakeLists.txt
39 lines (31 loc) · 1.12 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
cmake_minimum_required(VERSION 3.22)
project(LuaSTGSub)
#option(LINK_STEAM_API "Enable Steam API" OFF)
#option(LUASTG_RESDIR "Custom configurations" "res")
option(LUASTG_SUPPORTS_WINDOWS_7 "LuaSTG Sub Windows compatibility: Windows 7" ON)
if(LUASTG_SUPPORTS_WINDOWS_7)
message(STATUS "LuaSTG Sub Windows compatibility: Windows 7")
add_compile_definitions(LUASTG_SUPPORTS_WINDOWS_7)
endif()
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
include(cmake/TargetCommonOptions.cmake)
include(cmake/msvc.crt.cmake)
#msvc_hybrid_runtime_library()
msvc_static_runtime_library()
include(cmake/loader.cpm.cmake)
CPMInitialize()
include(cmake/packages.cpm.cmake)
include(cmake/packages.nuget.cmake)
include(cmake/packages.directx.cmake)
include(cmake/packages.xiph.cmake)
include(cmake/packages.z.cmake)
add_subdirectory(external)
include(cmake/packages.lua.cmake)
add_library(GeneratedShaderHeaders INTERFACE)
target_include_directories(GeneratedShaderHeaders
INTERFACE
${CMAKE_CURRENT_LIST_DIR}/LuaSTG/Shader/generated
)
add_subdirectory(imgui)
add_subdirectory(utility)
add_subdirectory(LuaSTG)