2012-07-01 17:27:41 +03:00
|
|
|
set(VCAI_SRCS
|
2017-06-29 01:03:37 +02:00
|
|
|
StdInc.cpp
|
|
|
|
|
2018-08-12 13:31:31 +02:00
|
|
|
Pathfinding/AIPathfinderConfig.cpp
|
|
|
|
Pathfinding/AIPathfinder.cpp
|
|
|
|
Pathfinding/AINodeStorage.cpp
|
2018-10-07 13:51:27 +02:00
|
|
|
Pathfinding/PathfindingManager.cpp
|
2019-02-06 14:51:12 +02:00
|
|
|
Pathfinding/Actions/BattleAction.cpp
|
|
|
|
Pathfinding/Actions/BoatActions.cpp
|
|
|
|
Pathfinding/Actions/TownPortalAction.cpp
|
|
|
|
Pathfinding/Rules/AILayerTransitionRule.cpp
|
|
|
|
Pathfinding/Rules/AIMovementAfterDestinationRule.cpp
|
|
|
|
Pathfinding/Rules/AIMovementToDestinationRule.cpp
|
|
|
|
Pathfinding/Rules/AIPreviousNodeRule.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
AIUtility.cpp
|
2018-07-27 06:44:10 +02:00
|
|
|
AIhelper.cpp
|
2019-03-13 15:21:24 +02:00
|
|
|
ArmyManager.cpp
|
2018-07-27 06:44:10 +02:00
|
|
|
ResourceManager.cpp
|
2018-07-29 18:27:21 +02:00
|
|
|
BuildingManager.cpp
|
2018-07-30 01:39:47 +02:00
|
|
|
MapObjectsEvaluator.cpp
|
2018-08-10 18:27:57 +02:00
|
|
|
FuzzyEngines.cpp
|
|
|
|
FuzzyHelper.cpp
|
2018-12-01 10:30:37 +02:00
|
|
|
Goals/AbstractGoal.cpp
|
|
|
|
Goals/BuildBoat.cpp
|
|
|
|
Goals/Build.cpp
|
|
|
|
Goals/BuildThis.cpp
|
|
|
|
Goals/Explore.cpp
|
|
|
|
Goals/GatherArmy.cpp
|
|
|
|
Goals/GatherTroops.cpp
|
|
|
|
Goals/BuyArmy.cpp
|
2018-12-09 15:20:46 +02:00
|
|
|
Goals/AdventureSpellCast.cpp
|
2018-12-01 10:30:37 +02:00
|
|
|
Goals/Win.cpp
|
|
|
|
Goals/VisitTile.cpp
|
|
|
|
Goals/VisitObj.cpp
|
|
|
|
Goals/VisitHero.cpp
|
|
|
|
Goals/CollectRes.cpp
|
|
|
|
Goals/Trade.cpp
|
|
|
|
Goals/RecruitHero.cpp
|
|
|
|
Goals/Conquer.cpp
|
|
|
|
Goals/ClearWayTo.cpp
|
|
|
|
Goals/DigAtTile.cpp
|
|
|
|
Goals/GetArtOfType.cpp
|
|
|
|
Goals/FindObj.cpp
|
2018-12-09 15:20:46 +02:00
|
|
|
Goals/CompleteQuest.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
main.cpp
|
|
|
|
VCAI.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(VCAI_HEADERS
|
|
|
|
StdInc.h
|
2018-08-12 13:31:31 +02:00
|
|
|
|
|
|
|
Pathfinding/AIPathfinderConfig.h
|
|
|
|
Pathfinding/AIPathfinder.h
|
|
|
|
Pathfinding/AINodeStorage.h
|
2018-10-07 13:51:27 +02:00
|
|
|
Pathfinding/PathfindingManager.h
|
2019-02-06 14:51:12 +02:00
|
|
|
Pathfinding/Actions/ISpecialAction.h
|
|
|
|
Pathfinding/Actions/BattleAction.h
|
|
|
|
Pathfinding/Actions/BoatActions.h
|
|
|
|
Pathfinding/Actions/TownPortalAction.h
|
|
|
|
Pathfinding/Rules/AILayerTransitionRule.h
|
|
|
|
Pathfinding/Rules/AIMovementAfterDestinationRule.h
|
|
|
|
Pathfinding/Rules/AIMovementToDestinationRule.h
|
|
|
|
Pathfinding/Rules/AIPreviousNodeRule.h
|
2017-06-29 01:03:37 +02:00
|
|
|
AIUtility.h
|
2018-07-27 06:44:10 +02:00
|
|
|
AIhelper.h
|
2019-03-13 15:21:24 +02:00
|
|
|
ArmyManager.h
|
2018-07-27 06:44:10 +02:00
|
|
|
ResourceManager.h
|
2018-07-29 18:27:21 +02:00
|
|
|
BuildingManager.h
|
2018-07-30 01:39:47 +02:00
|
|
|
MapObjectsEvaluator.h
|
2018-08-10 18:27:57 +02:00
|
|
|
FuzzyEngines.h
|
|
|
|
FuzzyHelper.h
|
2018-12-01 10:30:37 +02:00
|
|
|
Goals/AbstractGoal.h
|
|
|
|
Goals/CGoal.h
|
|
|
|
Goals/Invalid.h
|
|
|
|
Goals/BuildBoat.h
|
|
|
|
Goals/Build.h
|
|
|
|
Goals/BuildThis.h
|
|
|
|
Goals/Explore.h
|
|
|
|
Goals/GatherArmy.h
|
|
|
|
Goals/GatherTroops.h
|
|
|
|
Goals/BuyArmy.h
|
2018-12-09 15:20:46 +02:00
|
|
|
Goals/AdventureSpellCast.h
|
2018-12-01 10:30:37 +02:00
|
|
|
Goals/Win.h
|
|
|
|
Goals/VisitTile.h
|
|
|
|
Goals/VisitObj.h
|
|
|
|
Goals/VisitHero.h
|
|
|
|
Goals/CollectRes.h
|
|
|
|
Goals/Trade.h
|
|
|
|
Goals/RecruitHero.h
|
|
|
|
Goals/Conquer.h
|
|
|
|
Goals/ClearWayTo.h
|
|
|
|
Goals/DigAtTile.h
|
|
|
|
Goals/GetArtOfType.h
|
|
|
|
Goals/FindObj.h
|
2018-12-09 15:20:46 +02:00
|
|
|
Goals/CompleteQuest.h
|
2018-12-01 10:30:37 +02:00
|
|
|
Goals/Goals.h
|
2017-06-29 01:03:37 +02:00
|
|
|
VCAI.h
|
2012-07-01 17:27:41 +03:00
|
|
|
)
|
|
|
|
|
2017-08-15 20:17:00 +02:00
|
|
|
assign_source_group(${VCAI_SRCS} ${VCAI_HEADERS})
|
|
|
|
|
|
|
|
if(ANDROID) # android compiles ai libs into main lib directly, so we skip this library and just reuse sources list
|
2017-05-25 19:57:20 +02:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
add_library(VCAI SHARED ${VCAI_SRCS} ${VCAI_HEADERS})
|
2019-03-20 21:58:15 +02:00
|
|
|
|
|
|
|
target_include_directories(VCAI PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
2022-07-27 11:23:37 +02:00
|
|
|
target_link_libraries(VCAI PRIVATE ${VCMI_LIB_TARGET} fuzzylite::fuzzylite)
|
2012-10-05 15:38:17 +03:00
|
|
|
|
2017-07-04 22:46:49 +02:00
|
|
|
vcmi_set_output_dir(VCAI "AI")
|
2022-06-16 22:02:36 +02:00
|
|
|
enable_pch(VCAI)
|
2014-02-01 16:37:26 +03:00
|
|
|
|
2021-12-12 22:37:57 +02:00
|
|
|
install(TARGETS VCAI RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR} COMPONENT AI)
|