[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user