chore: update CMake linking for test helpers to PRIVATE

- Modified CMakeLists.txt for test helper executables to use PRIVATE visibility for linked libraries, ensuring encapsulation of dependencies.
- This change enhances build clarity and prevents unintended linkage of libraries in other targets.

Benefits:
- Improves modularity and maintainability of the build configuration for test helpers.
This commit is contained in:
scawful
2025-10-18 12:09:21 -04:00
parent 51cf1681e5
commit df695b8f86

View File

@@ -3,7 +3,7 @@ add_executable(overworld_golden_data_extractor
overworld_golden_data_extractor.cc overworld_golden_data_extractor.cc
) )
target_link_libraries(overworld_golden_data_extractor target_link_libraries(overworld_golden_data_extractor PRIVATE
yaze_core yaze_core
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
) )
@@ -13,7 +13,7 @@ add_executable(extract_vanilla_values
extract_vanilla_values.cc extract_vanilla_values.cc
) )
target_link_libraries(extract_vanilla_values target_link_libraries(extract_vanilla_values PRIVATE
yaze_core yaze_core
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
) )
@@ -23,7 +23,7 @@ add_executable(rom_patch_utility
rom_patch_utility.cc rom_patch_utility.cc
) )
target_link_libraries(rom_patch_utility target_link_libraries(rom_patch_utility PRIVATE
yaze_core yaze_core
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
) )
@@ -33,7 +33,7 @@ add_executable(dungeon_test_harness
dungeon_test_harness.cc dungeon_test_harness.cc
) )
target_link_libraries(dungeon_test_harness target_link_libraries(dungeon_test_harness PRIVATE
yaze_core yaze_core
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
) )