Enhance testing system integration in EditorManager and app configuration

- Added conditional compilation flags for enabling testing features in EditorManager, ensuring that testing-related functionalities are only initialized when tests are enabled.
- Updated app configuration to define YAZE_ENABLE_TESTING based on the build settings, improving clarity and control over testing capabilities.
- Refactored comments to clarify the context of testing features throughout the EditorManager code.
This commit is contained in:
scawful
2025-09-27 20:14:20 -04:00
parent e958fd139e
commit a578d48278
3 changed files with 30 additions and 7 deletions

View File

@@ -110,8 +110,10 @@ endif()
if(YAZE_BUILD_TESTS AND TARGET gtest AND TARGET gtest_main)
target_link_libraries(yaze PRIVATE gtest gtest_main)
target_compile_definitions(yaze PRIVATE YAZE_ENABLE_GTEST=1)
target_compile_definitions(yaze PRIVATE YAZE_ENABLE_TESTING=1)
else()
target_compile_definitions(yaze PRIVATE YAZE_ENABLE_GTEST=0)
target_compile_definitions(yaze PRIVATE YAZE_ENABLE_TESTING=0)
endif()
# Conditionally link PNG if available