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