Refactor CMake configuration for core library and testing

- Updated CMakeLists.txt to create a separate core library (yaze_core) for testing, enhancing modularity.
- Adjusted source file organization for yaze_c and yaze_core, ensuring proper inclusion of essential components.
- Modified test CMakeLists.txt to link against yaze_core instead of yaze_c, streamlining dependencies for test targets.
- Disabled installation of the library in minimal builds while maintaining the ability to build for testing purposes.
This commit is contained in:
scawful
2025-09-26 15:14:52 -04:00
parent caffe59800
commit 857e75e7fe
3 changed files with 63 additions and 19 deletions

View File

@@ -119,7 +119,7 @@ target_link_libraries(
gtest
)
# Conditionally link yaze_c only when library is built
# Link core library for essential functionality (BPS, ASAR, etc.)
if(YAZE_BUILD_LIB)
target_link_libraries(yaze_test yaze_c)
endif()