feat(cmake): add native file dialog support for Windows/Linux

- Introduced a new file dialog implementation using nativefiledialog-extended for better file handling on Windows and Linux platforms.
- Updated CMake configuration to link the new file dialog library and include necessary directories.
- Enhanced the editor library to conditionally link a test support library when testing is enabled.

Benefits:
- Improved user experience with native file dialogs for file operations.
- Streamlined testing support in the editor library, enhancing modularity and maintainability.
This commit is contained in:
scawful
2025-10-11 11:22:32 -04:00
parent 73837a3c7f
commit fdcffde424
3 changed files with 135 additions and 0 deletions

View File

@@ -108,6 +108,11 @@ target_link_libraries(yaze_editor PUBLIC
ImGui
)
# Link test support library if testing is enabled (for TestManager)
if(YAZE_BUILD_TESTS AND TARGET yaze_test_support)
target_link_libraries(yaze_editor PUBLIC yaze_test_support)
endif()
if(YAZE_WITH_JSON)
target_include_directories(yaze_editor PUBLIC
${CMAKE_SOURCE_DIR}/third_party/json/include)