32 lines
836 B
CMake
32 lines
836 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
|
|
if(MSVC)
|
|
if(POLICY CMP0141)
|
|
cmake_policy(SET CMP0141 NEW)
|
|
endif()
|
|
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT
|
|
"$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>")
|
|
endif()
|
|
|
|
project(XCEngine)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
enable_testing()
|
|
|
|
option(XCENGINE_ENABLE_MONO_SCRIPTING "Build the Mono-based C# scripting runtime" ON)
|
|
option(XCENGINE_BUILD_NEW_EDITOR "Build the XCUI new_editor shell app" ON)
|
|
set(
|
|
XCENGINE_MONO_ROOT_DIR
|
|
"${CMAKE_SOURCE_DIR}/参考/Fermion/Fermion/external/mono"
|
|
CACHE PATH
|
|
"Path to the bundled Mono distribution used by the scripting runtime")
|
|
|
|
add_subdirectory(engine)
|
|
add_subdirectory(editor)
|
|
add_subdirectory(new_editor)
|
|
add_subdirectory(managed)
|
|
add_subdirectory(mvs/RenderDoc)
|
|
add_subdirectory(tests)
|