2012-09-22 18:10:15 +03:00
|
|
|
set(battleAI_SRCS
|
2017-06-29 01:03:37 +02:00
|
|
|
AttackPossibility.cpp
|
2016-10-23 16:56:53 +02:00
|
|
|
BattleAI.cpp
|
2023-08-19 09:22:34 +02:00
|
|
|
BattleEvaluator.cpp
|
2016-10-28 16:16:46 +02:00
|
|
|
EnemyInfo.cpp
|
2017-07-20 06:08:49 +02:00
|
|
|
PossibleSpellcast.cpp
|
2017-06-29 01:03:37 +02: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-14 02:42:11 +03:00
|
|
|
)
|
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
set(battleAI_HEADERS
|
|
|
|
StdInc.h
|
|
|
|
|
|
|
|
AttackPossibility.h
|
|
|
|
BattleAI.h
|
2023-08-19 09:22:34 +02:00
|
|
|
BattleEvaluator.h
|
2017-06-29 01:03:37 +02:00
|
|
|
EnemyInfo.h
|
|
|
|
PotentialTargets.h
|
2017-07-20 06:08:49 +02:00
|
|
|
PossibleSpellcast.h
|
2017-06-29 01:03:37 +02:00
|
|
|
StackWithBonuses.h
|
|
|
|
ThreatMap.h
|
2022-01-27 09:00:27 +02:00
|
|
|
BattleExchangeVariant.h
|
2017-06-29 01:03:37 +02:00
|
|
|
)
|
|
|
|
|
2024-02-11 00:00:58 +02:00
|
|
|
if(NOT ENABLE_STATIC_LIBS)
|
2023-02-26 09:39:36 +02:00
|
|
|
list(APPEND battleAI_SRCS main.cpp StdInc.cpp)
|
|
|
|
endif()
|
2017-08-15 20:17:00 +02:00
|
|
|
assign_source_group(${battleAI_SRCS} ${battleAI_HEADERS})
|
|
|
|
|
2024-02-11 00:00:58 +02:00
|
|
|
if(ENABLE_STATIC_LIBS)
|
2023-02-26 10:39:56 +02: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 20:17:00 +02:00
|
|
|
|
2019-03-20 21:58:15 +02:00
|
|
|
target_include_directories(BattleAI PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
2024-02-11 20:38:24 +02:00
|
|
|
target_link_libraries(BattleAI PRIVATE vcmi TBB::tbb)
|
2012-10-05 15:38:17 +03:00
|
|
|
|
2017-07-04 22:46:49 +02:00
|
|
|
vcmi_set_output_dir(BattleAI "AI")
|
2022-06-16 22:02:36 +02:00
|
|
|
enable_pch(BattleAI)
|
2023-08-13 12:56:04 +02:00
|
|
|
|
|
|
|
if(APPLE_IOS AND NOT USING_CONAN)
|
|
|
|
install(IMPORTED_RUNTIME_ARTIFACTS TBB::tbb LIBRARY DESTINATION ${LIB_DIR}) # CMake 3.21+
|
|
|
|
endif()
|