1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/AI/Nullkiller/CMakeLists.txt

141 lines
4.0 KiB
CMake
Raw Normal View History

2021-05-16 14:39:38 +02:00
set(Nullkiller_SRCS
2021-05-15 18:22:44 +02:00
Pathfinding/AIPathfinderConfig.cpp
Pathfinding/AIPathfinder.cpp
Pathfinding/AINodeStorage.cpp
2021-05-15 19:59:43 +02:00
Pathfinding/Actors.cpp
2021-05-16 13:38:53 +02:00
Pathfinding/Actions/SpecialAction.cpp
2021-05-15 18:22:44 +02:00
Pathfinding/Actions/BattleAction.cpp
Pathfinding/Actions/QuestAction.cpp
Pathfinding/Actions/BuyArmyAction.cpp
2021-05-15 18:22:44 +02:00
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 18:22:44 +02:00
Goals/AbstractGoal.cpp
2021-05-16 13:38:53 +02:00
Goals/Composition.cpp
2021-05-16 14:39:38 +02:00
Goals/SaveResources.cpp
2021-05-15 18:22:44 +02:00
Goals/BuildBoat.cpp
Goals/BuildThis.cpp
Goals/DismissHero.cpp
2021-05-15 18:22:44 +02:00
Goals/BuyArmy.cpp
Goals/AdventureSpellCast.cpp
Goals/Trade.cpp
Goals/CaptureObject.cpp
2021-05-15 18:22:44 +02:00
Goals/RecruitHero.cpp
Goals/DigAtTile.cpp
2021-05-15 20:56:31 +02:00
Goals/ExecuteHeroChain.cpp
Goals/ExchangeSwapTownHeroes.cpp
Goals/CompleteQuest.cpp
Markers/ArmyUpgrade.cpp
Markers/HeroExchange.cpp
Markers/UnlockCluster.cpp
2021-05-16 14:00:24 +02:00
Markers/DefendTown.cpp
Engine/Nullkiller.cpp
Engine/DeepDecomposer.cpp
Engine/PriorityEvaluator.cpp
Analyzers/DangerHitMapAnalyzer.cpp
Analyzers/BuildAnalyzer.cpp
2021-05-16 13:45:12 +02:00
Analyzers/ObjectClusterizer.cpp
Behaviors/CaptureObjectsBehavior.cpp
Behaviors/RecruitHeroBehavior.cpp
Behaviors/BuyArmyBehavior.cpp
2021-05-16 12:53:32 +02:00
Behaviors/DefenceBehavior.cpp
Behaviors/StartupBehavior.cpp
Behaviors/BuildingBehavior.cpp
2021-05-16 13:19:07 +02:00
Behaviors/GatherArmyBehavior.cpp
2021-05-16 13:45:12 +02:00
Behaviors/ClusterBehavior.cpp
2021-05-16 14:39:38 +02:00
AIGateway.cpp
2021-05-15 18:22:44 +02:00
)
2021-05-16 14:39:38 +02:00
set(Nullkiller_HEADERS
2021-05-15 18:22:44 +02:00
StdInc.h
Pathfinding/AIPathfinderConfig.h
Pathfinding/AIPathfinder.h
Pathfinding/AINodeStorage.h
2021-05-15 19:59:43 +02:00
Pathfinding/Actors.h
2021-05-16 13:38:53 +02:00
Pathfinding/Actions/SpecialAction.h
2021-05-15 18:22:44 +02:00
Pathfinding/Actions/BattleAction.h
Pathfinding/Actions/QuestAction.h
Pathfinding/Actions/BuyArmyAction.h
2021-05-15 18:22:44 +02:00
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 18:22:44 +02:00
Goals/AbstractGoal.h
Goals/CGoal.h
2021-05-16 13:38:53 +02:00
Goals/Composition.h
2021-05-15 18:22:44 +02:00
Goals/Invalid.h
Goals/BuildBoat.h
2021-05-16 14:39:38 +02:00
Goals/SaveResources.h
2021-05-15 18:22:44 +02:00
Goals/BuildThis.h
Goals/DismissHero.h
2021-05-15 18:22:44 +02:00
Goals/BuyArmy.h
Goals/AdventureSpellCast.h
Goals/Trade.h
Goals/CaptureObject.h
2021-05-15 18:22:44 +02:00
Goals/RecruitHero.h
Goals/DigAtTile.h
2021-05-15 20:56:31 +02:00
Goals/ExecuteHeroChain.h
Goals/ExchangeSwapTownHeroes.h
Goals/CompleteQuest.h
2021-05-15 18:22:44 +02:00
Goals/Goals.h
Markers/ArmyUpgrade.h
Markers/HeroExchange.h
Markers/UnlockCluster.h
2021-05-16 14:00:24 +02:00
Markers/DefendTown.h
Engine/Nullkiller.h
Engine/DeepDecomposer.h
Engine/PriorityEvaluator.h
Analyzers/DangerHitMapAnalyzer.h
Analyzers/BuildAnalyzer.h
2021-05-16 13:45:12 +02:00
Analyzers/ObjectClusterizer.h
Behaviors/CaptureObjectsBehavior.h
Behaviors/RecruitHeroBehavior.h
Behaviors/BuyArmyBehavior.h
2021-05-16 12:53:32 +02:00
Behaviors/DefenceBehavior.h
Behaviors/StartupBehavior.h
Behaviors/BuildingBehavior.h
2021-05-16 13:19:07 +02:00
Behaviors/GatherArmyBehavior.h
2021-05-16 13:45:12 +02:00
Behaviors/ClusterBehavior.h
2021-05-16 14:39:38 +02:00
AIGateway.h
2021-05-15 18:22:44 +02:00
)
if(NOT ENABLE_STATIC_AI_LIBS)
list(APPEND Nullkiller_SRCS main.cpp StdInc.cpp)
endif()
2021-05-16 14:39:38 +02:00
assign_source_group(${Nullkiller_SRCS} ${Nullkiller_HEADERS})
2021-05-15 18:22:44 +02:00
if(ENABLE_STATIC_AI_LIBS)
add_library(Nullkiller STATIC ${Nullkiller_SRCS} ${Nullkiller_HEADERS})
else()
add_library(Nullkiller SHARED ${Nullkiller_SRCS} ${Nullkiller_HEADERS})
install(TARGETS Nullkiller RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR})
2021-05-15 18:22:44 +02:00
endif()
2021-05-16 14:39:38 +02:00
target_include_directories(Nullkiller PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(Nullkiller PUBLIC ${VCMI_LIB_TARGET} fuzzylite::fuzzylite TBB::tbb)
2021-05-16 14:39:38 +02:00
vcmi_set_output_dir(Nullkiller "AI")
enable_pch(Nullkiller)
2021-05-15 18:22:44 +02:00
2022-10-13 12:04:32 +02:00
if(APPLE_IOS AND NOT USING_CONAN)
install(IMPORTED_RUNTIME_ARTIFACTS TBB::tbb LIBRARY DESTINATION ${LIB_DIR}) # CMake 3.21+
2021-12-02 12:53:54 +02:00
endif()