From e576f3d9249e1ffb6bbfad1b0c7ce6438e4a9b97 Mon Sep 17 00:00:00 2001 From: Gliniak <153369+Gliniak@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:12:09 +0100 Subject: [PATCH] [Cmake] Added directory split in Visual studio (and probably other IDEs) Back as it was: - src - third_party There is CmakePredefinedTargets, but it cannot be hidden There is also an issue with tests as they aren't visible --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1073fa38f..3eb4cb9f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -223,12 +223,17 @@ endif() # ============================================================================== # Subdirectories # ============================================================================== +set_property(GLOBAL PROPERTY USE_FOLDERS ON) # Third-party libraries first (no -Werror applied to these) +set(CMAKE_FOLDER "third_party") add_subdirectory(third_party) # Xenia source modules (xe_target_defaults applies -Werror) +set(CMAKE_FOLDER "src") add_subdirectory(src/xenia) +set(CMAKE_FOLDER "") + # Set default startup project for Visual Studio set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT xenia-app)