Files
XCEngine/CMakeLists.txt

32 lines
837 B
CMake
Raw Normal View History

2026-03-11 17:38:11 +08:00
cmake_minimum_required(VERSION 3.15)
2026-04-05 04:55:25 +08:00
if(MSVC)
if(POLICY CMP0141)
cmake_policy(SET CMP0141 NEW)
endif()
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT
"$<$<CONFIG:Debug,RelWithDebInfo>:Embedded>")
endif()
project(XCEngine)
2026-03-11 17:38:11 +08:00
set(CMAKE_CXX_STANDARD 20)
2026-03-11 17:38:11 +08:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
enable_testing()
option(XCENGINE_ENABLE_MONO_SCRIPTING "Build the Mono-based C# scripting runtime" ON)
option(XCENGINE_BUILD_XCUI_EDITOR_APP "Build the XCUI 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)