[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
This commit is contained in:
Gliniak
2026-03-04 20:12:09 +01:00
parent a1710699cd
commit e576f3d924

View File

@@ -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)