Add CLion CMake facade project generation

Add CLion as a supported editor workflow for native C++ development.
The new -clion generation option writes a CMake facade project under
Cache/Projects/CMake/<ProjectName>, exposing a CLion-friendly code model,
build presets, and launcher targets while keeping Flax.Build as the source
of truth for native builds.
This commit is contained in:
Andrei Gagua
2026-06-09 15:16:35 +03:00
parent 057e5684e9
commit eaf06e9523
11 changed files with 1075 additions and 1 deletions
@@ -40,6 +40,7 @@ namespace FlaxEditor.Modules.SourceCodeEditing
var codeEditing = Editor.Instance.CodeEditing;
var vsCode = codeEditing.GetInBuildEditor(CodeEditorTypes.VSCode);
var rider = codeEditing.GetInBuildEditor(CodeEditorTypes.Rider);
var clion = codeEditing.GetInBuildEditor(CodeEditorTypes.CLion);
#if PLATFORM_WINDOWS
// Favor the newest Visual Studio
@@ -66,6 +67,8 @@ namespace FlaxEditor.Modules.SourceCodeEditing
_currentEditor = vsCode;
else if (rider != null)
_currentEditor = rider;
else if (clion != null)
_currentEditor = clion;
else
_currentEditor = codeEditing.GetInBuildEditor(CodeEditorTypes.SystemDefault);
}