chore(cmake): enhance test support linkage and file dialog functionality

- Improved the CMake configuration to conditionally link the yaze_test_support library for the yaze target when tests are enabled, providing clearer feedback on linkage status.
- Updated the file dialog implementation to include specific filters for ROM files and all files, enhancing user experience during file selection.
- Added status messages to inform users about the linkage of test support and potential issues if the target is not found.

Benefits:
- Enhanced clarity and maintainability of the CMake configuration.
- Improved user interaction with file dialogs through better filtering options.
This commit is contained in:
scawful
2025-10-11 13:29:24 -04:00
parent 88a4f29fe8
commit e523ce94da
3 changed files with 16 additions and 12 deletions

View File

@@ -44,6 +44,11 @@ target_link_libraries(yaze PRIVATE
# Link test support if tests are enabled (yaze_editor needs TestManager)
if(YAZE_BUILD_TESTS AND TARGET yaze_test_support)
target_link_libraries(yaze PRIVATE yaze_test_support)
message(STATUS "✓ yaze executable linked to yaze_test_support")
else()
if(YAZE_BUILD_TESTS)
message(WARNING "yaze needs yaze_test_support but TARGET yaze_test_support not found")
endif()
endif()
# Platform-specific settings