CMakeLists.txt 4.0 KB

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