CMakeLists.txt 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. set(Nullkiller_SRCS
  2. Pathfinding/AIPathfinderConfig.cpp
  3. Pathfinding/AIPathfinder.cpp
  4. Pathfinding/AINodeStorage.cpp
  5. Pathfinding/Actors.cpp
  6. Pathfinding/Actions/SpecialAction.cpp
  7. Pathfinding/Actions/BattleAction.cpp
  8. Pathfinding/Actions/QuestAction.cpp
  9. Pathfinding/Actions/BuyArmyAction.cpp
  10. Pathfinding/Actions/BoatActions.cpp
  11. Pathfinding/Actions/TownPortalAction.cpp
  12. Pathfinding/Rules/AILayerTransitionRule.cpp
  13. Pathfinding/Rules/AIMovementAfterDestinationRule.cpp
  14. Pathfinding/Rules/AIMovementToDestinationRule.cpp
  15. Pathfinding/Rules/AIPreviousNodeRule.cpp
  16. AIUtility.cpp
  17. Analyzers/ArmyManager.cpp
  18. Analyzers/HeroManager.cpp
  19. Engine/FuzzyEngines.cpp
  20. Engine/FuzzyHelper.cpp
  21. Engine/AIMemory.cpp
  22. Goals/AbstractGoal.cpp
  23. Goals/Composition.cpp
  24. Goals/SaveResources.cpp
  25. Goals/BuildBoat.cpp
  26. Goals/BuildThis.cpp
  27. Goals/DismissHero.cpp
  28. Goals/BuyArmy.cpp
  29. Goals/AdventureSpellCast.cpp
  30. Goals/Trade.cpp
  31. Goals/CaptureObject.cpp
  32. Goals/RecruitHero.cpp
  33. Goals/DigAtTile.cpp
  34. Goals/ExecuteHeroChain.cpp
  35. Goals/ExchangeSwapTownHeroes.cpp
  36. Goals/CompleteQuest.cpp
  37. Markers/ArmyUpgrade.cpp
  38. Markers/HeroExchange.cpp
  39. Markers/UnlockCluster.cpp
  40. Markers/DefendTown.cpp
  41. Engine/Nullkiller.cpp
  42. Engine/DeepDecomposer.cpp
  43. Engine/PriorityEvaluator.cpp
  44. Analyzers/DangerHitMapAnalyzer.cpp
  45. Analyzers/BuildAnalyzer.cpp
  46. Analyzers/ObjectClusterizer.cpp
  47. Behaviors/CaptureObjectsBehavior.cpp
  48. Behaviors/RecruitHeroBehavior.cpp
  49. Behaviors/BuyArmyBehavior.cpp
  50. Behaviors/DefenceBehavior.cpp
  51. Behaviors/StartupBehavior.cpp
  52. Behaviors/BuildingBehavior.cpp
  53. Behaviors/GatherArmyBehavior.cpp
  54. Behaviors/ClusterBehavior.cpp
  55. AIGateway.cpp
  56. )
  57. set(Nullkiller_HEADERS
  58. StdInc.h
  59. Pathfinding/AIPathfinderConfig.h
  60. Pathfinding/AIPathfinder.h
  61. Pathfinding/AINodeStorage.h
  62. Pathfinding/Actors.h
  63. Pathfinding/Actions/SpecialAction.h
  64. Pathfinding/Actions/BattleAction.h
  65. Pathfinding/Actions/QuestAction.h
  66. Pathfinding/Actions/BuyArmyAction.h
  67. Pathfinding/Actions/BoatActions.h
  68. Pathfinding/Actions/TownPortalAction.h
  69. Pathfinding/Rules/AILayerTransitionRule.h
  70. Pathfinding/Rules/AIMovementAfterDestinationRule.h
  71. Pathfinding/Rules/AIMovementToDestinationRule.h
  72. Pathfinding/Rules/AIPreviousNodeRule.h
  73. AIUtility.h
  74. Analyzers/ArmyManager.h
  75. Analyzers/HeroManager.h
  76. Engine/FuzzyEngines.h
  77. Engine/FuzzyHelper.h
  78. Engine/AIMemory.h
  79. Goals/AbstractGoal.h
  80. Goals/CGoal.h
  81. Goals/Composition.h
  82. Goals/Invalid.h
  83. Goals/BuildBoat.h
  84. Goals/SaveResources.h
  85. Goals/BuildThis.h
  86. Goals/DismissHero.h
  87. Goals/BuyArmy.h
  88. Goals/AdventureSpellCast.h
  89. Goals/Trade.h
  90. Goals/CaptureObject.h
  91. Goals/RecruitHero.h
  92. Goals/DigAtTile.h
  93. Goals/ExecuteHeroChain.h
  94. Goals/ExchangeSwapTownHeroes.h
  95. Goals/CompleteQuest.h
  96. Goals/Goals.h
  97. Markers/ArmyUpgrade.h
  98. Markers/HeroExchange.h
  99. Markers/UnlockCluster.h
  100. Markers/DefendTown.h
  101. Engine/Nullkiller.h
  102. Engine/DeepDecomposer.h
  103. Engine/PriorityEvaluator.h
  104. Analyzers/DangerHitMapAnalyzer.h
  105. Analyzers/BuildAnalyzer.h
  106. Analyzers/ObjectClusterizer.h
  107. Behaviors/CaptureObjectsBehavior.h
  108. Behaviors/RecruitHeroBehavior.h
  109. Behaviors/BuyArmyBehavior.h
  110. Behaviors/DefenceBehavior.h
  111. Behaviors/StartupBehavior.h
  112. Behaviors/BuildingBehavior.h
  113. Behaviors/GatherArmyBehavior.h
  114. Behaviors/ClusterBehavior.h
  115. AIGateway.h
  116. )
  117. if(NOT ENABLE_STATIC_AI_LIBS)
  118. list(APPEND Nullkiller_SRCS main.cpp StdInc.cpp)
  119. endif()
  120. assign_source_group(${Nullkiller_SRCS} ${Nullkiller_HEADERS})
  121. if(ENABLE_STATIC_AI_LIBS)
  122. add_library(Nullkiller STATIC ${Nullkiller_SRCS} ${Nullkiller_HEADERS})
  123. else()
  124. add_library(Nullkiller SHARED ${Nullkiller_SRCS} ${Nullkiller_HEADERS})
  125. install(TARGETS Nullkiller RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR})
  126. endif()
  127. target_include_directories(Nullkiller PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
  128. target_link_libraries(Nullkiller PUBLIC ${VCMI_LIB_TARGET} fuzzylite::fuzzylite TBB::tbb)
  129. vcmi_set_output_dir(Nullkiller "AI")
  130. enable_pch(Nullkiller)
  131. if(APPLE_IOS AND NOT USING_CONAN)
  132. install(IMPORTED_RUNTIME_ARTIFACTS TBB::tbb LIBRARY DESTINATION ${LIB_DIR}) # CMake 3.21+
  133. endif()