fix(ci): Link tests to playerbot library for Phase5 tests
The Phase5 tests use DecisionFusionSystem, ActionPriorityQueue, and BehaviorTree which are defined in playerbot-ai-base library. Add conditional linking to playerbot target when BUILD_PLAYERBOT is enabled. Co-Authored-By: Claude Opus 4.5 <[email protected]> Signed-off-by: luis <[email protected]>
This commit is contained in:
committed by
luis
co-authored by
Claude Opus 4.5
parent
fe030ac19e
commit
5215722b7e
@@ -22,6 +22,12 @@ target_link_libraries(tests
|
||||
game
|
||||
Catch2::Catch2)
|
||||
|
||||
# Link playerbot module if enabled (for Phase5 tests)
|
||||
if(BUILD_PLAYERBOT)
|
||||
target_link_libraries(tests PRIVATE playerbot)
|
||||
target_compile_definitions(tests PRIVATE BUILD_PLAYERBOT=1)
|
||||
endif()
|
||||
|
||||
target_include_directories(tests
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
|
||||
Reference in New Issue
Block a user