CMakeLists.txt 4.4 KB

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