1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-20 03:29:32 +02:00
vcmi/AI/Nullkiller/CMakeLists.txt

140 lines
3.7 KiB
CMake
Raw Normal View History

2021-05-15 19:22:44 +03:00
set(VCAI_SRCS
StdInc.cpp
Pathfinding/AIPathfinderConfig.cpp
Pathfinding/AIPathfinder.cpp
Pathfinding/AINodeStorage.cpp
2021-05-15 20:59:43 +03:00
Pathfinding/Actors.cpp
2021-05-16 14:38:53 +03:00
Pathfinding/Actions/SpecialAction.cpp
2021-05-15 19:22:44 +03: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
AIUtility.cpp
Analyzers/ArmyManager.cpp
Analyzers/HeroManager.cpp
Engine/FuzzyEngines.cpp
Engine/FuzzyHelper.cpp
Engine/AIMemory.cpp
2021-05-15 19:22:44 +03:00
Goals/AbstractGoal.cpp
2021-05-16 14:38:53 +03:00
Goals/Composition.cpp
2021-05-15 19:22:44 +03:00
Goals/BuildBoat.cpp
Goals/BuildThis.cpp
Goals/DismissHero.cpp
2021-05-15 19:22:44 +03:00
Goals/GatherTroops.cpp
Goals/BuyArmy.cpp
Goals/AdventureSpellCast.cpp
Goals/CollectRes.cpp
Goals/Trade.cpp
Goals/RecruitHero.cpp
2021-05-16 14:45:12 +03:00
Goals/UnlockCluster.cpp
2021-05-15 19:22:44 +03:00
Goals/DigAtTile.cpp
Goals/GetArtOfType.cpp
2021-05-15 21:56:31 +03:00
Goals/ExecuteHeroChain.cpp
Goals/ExchangeSwapTownHeroes.cpp
Engine/Nullkiller.cpp
Engine/PriorityEvaluator.cpp
Analyzers/DangerHitMapAnalyzer.cpp
Analyzers/BuildAnalyzer.cpp
2021-05-16 14:45:12 +03:00
Analyzers/ObjectClusterizer.cpp
Behaviors/CaptureObjectsBehavior.cpp
Behaviors/RecruitHeroBehavior.cpp
Behaviors/BuyArmyBehavior.cpp
2021-05-16 13:53:32 +03:00
Behaviors/DefenceBehavior.cpp
Behaviors/StartupBehavior.cpp
Behaviors/BuildingBehavior.cpp
2021-05-16 14:19:07 +03:00
Behaviors/GatherArmyBehavior.cpp
Behaviors/CompleteQuestBehavior.cpp
2021-05-16 14:45:12 +03:00
Behaviors/ClusterBehavior.cpp
2021-05-15 19:22:44 +03:00
main.cpp
VCAI.cpp
)
set(VCAI_HEADERS
StdInc.h
Pathfinding/AIPathfinderConfig.h
Pathfinding/AIPathfinder.h
Pathfinding/AINodeStorage.h
2021-05-15 20:59:43 +03:00
Pathfinding/Actors.h
2021-05-16 14:38:53 +03:00
Pathfinding/Actions/SpecialAction.h
2021-05-15 19:22:44 +03:00
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
AIUtility.h
Analyzers/ArmyManager.h
Analyzers/HeroManager.h
Engine/FuzzyEngines.h
Engine/FuzzyHelper.h
Engine/AIMemory.h
2021-05-15 19:22:44 +03:00
Goals/AbstractGoal.h
Goals/CGoal.h
2021-05-16 14:38:53 +03:00
Goals/Composition.h
2021-05-15 19:22:44 +03:00
Goals/Invalid.h
Goals/BuildBoat.h
Goals/BuildThis.h
Goals/DismissHero.h
2021-05-15 19:22:44 +03:00
Goals/GatherTroops.h
Goals/BuyArmy.h
Goals/AdventureSpellCast.h
Goals/CollectRes.h
Goals/Trade.h
2021-05-16 14:45:12 +03:00
Goals/UnlockCluster.h
2021-05-15 19:22:44 +03:00
Goals/RecruitHero.h
Goals/DigAtTile.h
Goals/GetArtOfType.h
2021-05-15 21:56:31 +03:00
Goals/ExecuteHeroChain.h
Goals/ExchangeSwapTownHeroes.h
2021-05-15 19:22:44 +03:00
Goals/Goals.h
Engine/Nullkiller.h
Engine/PriorityEvaluator.h
Analyzers/DangerHitMapAnalyzer.h
Analyzers/BuildAnalyzer.h
2021-05-16 14:45:12 +03:00
Analyzers/ObjectClusterizer.h
Behaviors/CaptureObjectsBehavior.h
Behaviors/RecruitHeroBehavior.h
Behaviors/BuyArmyBehavior.h
2021-05-16 13:53:32 +03:00
Behaviors/DefenceBehavior.h
Behaviors/StartupBehavior.h
Behaviors/BuildingBehavior.h
2021-05-16 14:19:07 +03:00
Behaviors/GatherArmyBehavior.h
Behaviors/CompleteQuestBehavior.h
2021-05-16 14:45:12 +03:00
Behaviors/ClusterBehavior.h
2021-05-15 19:22:44 +03:00
VCAI.h
)
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
return()
endif()
add_library(VCAI SHARED ${VCAI_SRCS} ${VCAI_HEADERS})
2019-04-07 07:31:47 +03:00
if(FL_FOUND)
target_include_directories(VCAI PUBLIC ${FL_INCLUDE_DIRS})
else()
target_include_directories(VCAI PUBLIC ${CMAKE_HOME_DIRECTORY}/AI/FuzzyLite/fuzzylite)
endif()
target_include_directories(VCAI PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
2021-05-15 19:22:44 +03:00
if(FL_FOUND)
2019-04-07 07:31:47 +03:00
target_link_libraries(VCAI PRIVATE ${FL_LIBRARIES} vcmi)
2021-05-15 19:22:44 +03:00
else()
2019-04-07 07:31:47 +03:00
target_link_libraries(VCAI PRIVATE fl-static vcmi)
2021-05-15 19:22:44 +03:00
endif()
vcmi_set_output_dir(VCAI "AI")
set_target_properties(VCAI PROPERTIES ${PCH_PROPERTIES})
cotire(VCAI)
install(TARGETS VCAI RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR})