CMakeLists.txt 4.3 KB

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