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