CMakeLists.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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/Actions/AdventureSpellCastMovementActions.cpp
  13. Pathfinding/Rules/AILayerTransitionRule.cpp
  14. Pathfinding/Rules/AIMovementAfterDestinationRule.cpp
  15. Pathfinding/Rules/AIMovementToDestinationRule.cpp
  16. Pathfinding/Rules/AIPreviousNodeRule.cpp
  17. Pathfinding/ObjectGraph.cpp
  18. Pathfinding/GraphPaths.cpp
  19. Pathfinding/ObjectGraphCalculator.cpp
  20. AIUtility.cpp
  21. Analyzers/ArmyManager.cpp
  22. Analyzers/HeroManager.cpp
  23. Engine/Settings.cpp
  24. Engine/FuzzyEngines.cpp
  25. Engine/FuzzyHelper.cpp
  26. Engine/AIMemory.cpp
  27. Goals/AbstractGoal.cpp
  28. Goals/Composition.cpp
  29. Goals/SaveResources.cpp
  30. Goals/BuildBoat.cpp
  31. Goals/BuildThis.cpp
  32. Goals/DismissHero.cpp
  33. Goals/BuyArmy.cpp
  34. Goals/AdventureSpellCast.cpp
  35. Goals/Trade.cpp
  36. Goals/CaptureObject.cpp
  37. Goals/RecruitHero.cpp
  38. Goals/DigAtTile.cpp
  39. Goals/ExecuteHeroChain.cpp
  40. Goals/ExchangeSwapTownHeroes.cpp
  41. Goals/CompleteQuest.cpp
  42. Goals/StayAtTown.cpp
  43. Goals/ExploreNeighbourTile.cpp
  44. Markers/ArmyUpgrade.cpp
  45. Markers/HeroExchange.cpp
  46. Markers/UnlockCluster.cpp
  47. Markers/DefendTown.cpp
  48. Markers/ExplorationPoint.cpp
  49. Engine/Nullkiller.cpp
  50. Engine/DeepDecomposer.cpp
  51. Engine/PriorityEvaluator.cpp
  52. Analyzers/DangerHitMapAnalyzer.cpp
  53. Analyzers/BuildAnalyzer.cpp
  54. Analyzers/ObjectClusterizer.cpp
  55. Behaviors/CaptureObjectsBehavior.cpp
  56. Behaviors/RecruitHeroBehavior.cpp
  57. Behaviors/BuyArmyBehavior.cpp
  58. Behaviors/DefenceBehavior.cpp
  59. Behaviors/StartupBehavior.cpp
  60. Behaviors/BuildingBehavior.cpp
  61. Behaviors/GatherArmyBehavior.cpp
  62. Behaviors/ClusterBehavior.cpp
  63. Behaviors/StayAtTownBehavior.cpp
  64. Behaviors/ExplorationBehavior.cpp
  65. Helpers/ArmyFormation.cpp
  66. Helpers/ExplorationHelper.cpp
  67. AIGateway.cpp
  68. )
  69. set(Nullkiller_HEADERS
  70. StdInc.h
  71. Pathfinding/AIPathfinderConfig.h
  72. Pathfinding/AIPathfinder.h
  73. Pathfinding/AINodeStorage.h
  74. Pathfinding/Actors.h
  75. Pathfinding/Actions/SpecialAction.h
  76. Pathfinding/Actions/BattleAction.h
  77. Pathfinding/Actions/QuestAction.h
  78. Pathfinding/Actions/BuyArmyAction.h
  79. Pathfinding/Actions/BoatActions.h
  80. Pathfinding/Actions/TownPortalAction.h
  81. Pathfinding/Actions/AdventureSpellCastMovementActions.h
  82. Pathfinding/Rules/AILayerTransitionRule.h
  83. Pathfinding/Rules/AIMovementAfterDestinationRule.h
  84. Pathfinding/Rules/AIMovementToDestinationRule.h
  85. Pathfinding/Rules/AIPreviousNodeRule.h
  86. Pathfinding/ObjectGraph.h
  87. Pathfinding/GraphPaths.h
  88. Pathfinding/ObjectGraphCalculator.h
  89. AIUtility.h
  90. pforeach.h
  91. Analyzers/ArmyManager.h
  92. Analyzers/HeroManager.h
  93. Engine/Settings.h
  94. Engine/FuzzyEngines.h
  95. Engine/FuzzyHelper.h
  96. Engine/AIMemory.h
  97. Goals/AbstractGoal.h
  98. Goals/CGoal.h
  99. Goals/Composition.h
  100. Goals/Invalid.h
  101. Goals/BuildBoat.h
  102. Goals/SaveResources.h
  103. Goals/BuildThis.h
  104. Goals/DismissHero.h
  105. Goals/BuyArmy.h
  106. Goals/AdventureSpellCast.h
  107. Goals/Trade.h
  108. Goals/CaptureObject.h
  109. Goals/RecruitHero.h
  110. Goals/DigAtTile.h
  111. Goals/ExecuteHeroChain.h
  112. Goals/ExchangeSwapTownHeroes.h
  113. Goals/CompleteQuest.h
  114. Goals/Goals.h
  115. Goals/StayAtTown.h
  116. Goals/ExploreNeighbourTile.h
  117. Markers/ArmyUpgrade.h
  118. Markers/HeroExchange.h
  119. Markers/UnlockCluster.h
  120. Markers/DefendTown.h
  121. Markers/ExplorationPoint.h
  122. Engine/Nullkiller.h
  123. Engine/DeepDecomposer.h
  124. Engine/PriorityEvaluator.h
  125. Analyzers/DangerHitMapAnalyzer.h
  126. Analyzers/BuildAnalyzer.h
  127. Analyzers/ObjectClusterizer.h
  128. Behaviors/CaptureObjectsBehavior.h
  129. Behaviors/RecruitHeroBehavior.h
  130. Behaviors/BuyArmyBehavior.h
  131. Behaviors/DefenceBehavior.h
  132. Behaviors/StartupBehavior.h
  133. Behaviors/BuildingBehavior.h
  134. Behaviors/GatherArmyBehavior.h
  135. Behaviors/ClusterBehavior.h
  136. Behaviors/StayAtTownBehavior.h
  137. Behaviors/ExplorationBehavior.h
  138. Helpers/ArmyFormation.h
  139. Helpers/ExplorationHelper.h
  140. AIGateway.h
  141. )
  142. if(NOT ENABLE_STATIC_LIBS)
  143. list(APPEND Nullkiller_SRCS main.cpp StdInc.cpp)
  144. endif()
  145. assign_source_group(${Nullkiller_SRCS} ${Nullkiller_HEADERS})
  146. if(ENABLE_STATIC_LIBS)
  147. add_library(Nullkiller STATIC ${Nullkiller_SRCS} ${Nullkiller_HEADERS})
  148. else()
  149. add_library(Nullkiller SHARED ${Nullkiller_SRCS} ${Nullkiller_HEADERS})
  150. install(TARGETS Nullkiller RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR})
  151. endif()
  152. target_include_directories(Nullkiller PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
  153. target_link_libraries(Nullkiller PUBLIC vcmi fuzzylite::fuzzylite TBB::tbb)
  154. vcmi_set_output_dir(Nullkiller "AI")
  155. enable_pch(Nullkiller)
  156. if(APPLE_IOS AND NOT USING_CONAN)
  157. install(IMPORTED_RUNTIME_ARTIFACTS TBB::tbb LIBRARY DESTINATION ${LIB_DIR}) # CMake 3.21+
  158. endif()