2012-09-22 15:10:15 +00:00
|
|
|
set(battleAI_SRCS
|
2017-06-29 02:03:37 +03:00
|
|
|
AttackPossibility.cpp
|
2016-10-23 16:56:53 +02:00
|
|
|
BattleAI.cpp
|
2023-08-19 10:22:34 +03:00
|
|
|
BattleEvaluator.cpp
|
2016-10-28 16:16:46 +02:00
|
|
|
EnemyInfo.cpp
|
2017-07-20 07:08:49 +03:00
|
|
|
PossibleSpellcast.cpp
|
2017-06-29 02:03:37 +03:00
|
|
|
PotentialTargets.cpp
|
|
|
|
StackWithBonuses.cpp
|
2016-10-28 16:16:46 +02:00
|
|
|
ThreatMap.cpp
|
2022-01-27 09:00:27 +02:00
|
|
|
BattleExchangeVariant.cpp
|
2012-09-13 23:42:11 +00:00
|
|
|
)
|
|
|
|
|
2017-06-29 02:03:37 +03:00
|
|
|
set(battleAI_HEADERS
|
|
|
|
StdInc.h
|
|
|
|
|
|
|
|
AttackPossibility.h
|
|
|
|
BattleAI.h
|
2023-08-19 10:22:34 +03:00
|
|
|
BattleEvaluator.h
|
2017-06-29 02:03:37 +03:00
|
|
|
EnemyInfo.h
|
|
|
|
PotentialTargets.h
|
2017-07-20 07:08:49 +03:00
|
|
|
PossibleSpellcast.h
|
2017-06-29 02:03:37 +03:00
|
|
|
StackWithBonuses.h
|
|
|
|
ThreatMap.h
|
2022-01-27 09:00:27 +02:00
|
|
|
BattleExchangeVariant.h
|
2017-06-29 02:03:37 +03:00
|
|
|
)
|
|
|
|
|
2024-02-11 00:00:58 +02:00
|
|
|
if(NOT ENABLE_STATIC_LIBS)
|
2023-02-26 10:39:36 +03:00
|
|
|
list(APPEND battleAI_SRCS main.cpp StdInc.cpp)
|
|
|
|
endif()
|
2017-08-15 21:17:00 +03:00
|
|
|
assign_source_group(${battleAI_SRCS} ${battleAI_HEADERS})
|
|
|
|
|
2024-02-11 00:00:58 +02:00
|
|
|
if(ENABLE_STATIC_LIBS)
|
2023-02-26 11:39:56 +03:00
|
|
|
add_library(BattleAI STATIC ${battleAI_SRCS} ${battleAI_HEADERS})
|
|
|
|
else()
|
|
|
|
add_library(BattleAI SHARED ${battleAI_SRCS} ${battleAI_HEADERS})
|
|
|
|
install(TARGETS BattleAI RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR})
|
2017-05-25 19:57:20 +02:00
|
|
|
endif()
|
2017-08-15 21:17:00 +03:00
|
|
|
|
2019-03-20 20:58:15 +01:00
|
|
|
target_include_directories(BattleAI PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
2024-07-25 14:41:37 +00:00
|
|
|
target_link_libraries(BattleAI PRIVATE vcmi)
|
2012-10-05 12:38:17 +00:00
|
|
|
|
2017-07-04 23:46:49 +03:00
|
|
|
vcmi_set_output_dir(BattleAI "AI")
|
2022-06-17 04:02:36 +08:00
|
|
|
enable_pch(BattleAI)
|