CMakeLists.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. set(VCAI_SRCS
  2. StdInc.cpp
  3. Pathfinding/AIPathfinderConfig.cpp
  4. Pathfinding/AIPathfinder.cpp
  5. Pathfinding/AINodeStorage.cpp
  6. Pathfinding/PathfindingManager.cpp
  7. Pathfinding/Actions/BattleAction.cpp
  8. Pathfinding/Actions/BoatActions.cpp
  9. Pathfinding/Actions/TownPortalAction.cpp
  10. Pathfinding/Rules/AILayerTransitionRule.cpp
  11. Pathfinding/Rules/AIMovementAfterDestinationRule.cpp
  12. Pathfinding/Rules/AIMovementToDestinationRule.cpp
  13. Pathfinding/Rules/AIPreviousNodeRule.cpp
  14. AIUtility.cpp
  15. AIhelper.cpp
  16. ArmyManager.cpp
  17. ResourceManager.cpp
  18. BuildingManager.cpp
  19. MapObjectsEvaluator.cpp
  20. FuzzyEngines.cpp
  21. FuzzyHelper.cpp
  22. Goals/AbstractGoal.cpp
  23. Goals/BuildBoat.cpp
  24. Goals/Build.cpp
  25. Goals/BuildThis.cpp
  26. Goals/Explore.cpp
  27. Goals/GatherArmy.cpp
  28. Goals/GatherTroops.cpp
  29. Goals/BuyArmy.cpp
  30. Goals/AdventureSpellCast.cpp
  31. Goals/Win.cpp
  32. Goals/VisitTile.cpp
  33. Goals/VisitObj.cpp
  34. Goals/VisitHero.cpp
  35. Goals/CollectRes.cpp
  36. Goals/Trade.cpp
  37. Goals/RecruitHero.cpp
  38. Goals/Conquer.cpp
  39. Goals/ClearWayTo.cpp
  40. Goals/DigAtTile.cpp
  41. Goals/GetArtOfType.cpp
  42. Goals/FindObj.cpp
  43. Goals/CompleteQuest.cpp
  44. main.cpp
  45. VCAI.cpp
  46. )
  47. set(VCAI_HEADERS
  48. StdInc.h
  49. Pathfinding/AIPathfinderConfig.h
  50. Pathfinding/AIPathfinder.h
  51. Pathfinding/AINodeStorage.h
  52. Pathfinding/PathfindingManager.h
  53. Pathfinding/Actions/ISpecialAction.h
  54. Pathfinding/Actions/BattleAction.h
  55. Pathfinding/Actions/BoatActions.h
  56. Pathfinding/Actions/TownPortalAction.h
  57. Pathfinding/Rules/AILayerTransitionRule.h
  58. Pathfinding/Rules/AIMovementAfterDestinationRule.h
  59. Pathfinding/Rules/AIMovementToDestinationRule.h
  60. Pathfinding/Rules/AIPreviousNodeRule.h
  61. AIUtility.h
  62. AIhelper.h
  63. ArmyManager.h
  64. ResourceManager.h
  65. BuildingManager.h
  66. MapObjectsEvaluator.h
  67. FuzzyEngines.h
  68. FuzzyHelper.h
  69. Goals/AbstractGoal.h
  70. Goals/CGoal.h
  71. Goals/Invalid.h
  72. Goals/BuildBoat.h
  73. Goals/Build.h
  74. Goals/BuildThis.h
  75. Goals/Explore.h
  76. Goals/GatherArmy.h
  77. Goals/GatherTroops.h
  78. Goals/BuyArmy.h
  79. Goals/AdventureSpellCast.h
  80. Goals/Win.h
  81. Goals/VisitTile.h
  82. Goals/VisitObj.h
  83. Goals/VisitHero.h
  84. Goals/CollectRes.h
  85. Goals/Trade.h
  86. Goals/RecruitHero.h
  87. Goals/Conquer.h
  88. Goals/ClearWayTo.h
  89. Goals/DigAtTile.h
  90. Goals/GetArtOfType.h
  91. Goals/FindObj.h
  92. Goals/CompleteQuest.h
  93. Goals/Goals.h
  94. VCAI.h
  95. )
  96. assign_source_group(${VCAI_SRCS} ${VCAI_HEADERS})
  97. if(ANDROID) # android compiles ai libs into main lib directly, so we skip this library and just reuse sources list
  98. return()
  99. endif()
  100. add_library(VCAI SHARED ${VCAI_SRCS} ${VCAI_HEADERS})
  101. target_include_directories(VCAI PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
  102. target_link_libraries(VCAI PRIVATE ${VCMI_LIB_TARGET} fuzzylite::fuzzylite)
  103. vcmi_set_output_dir(VCAI "AI")
  104. enable_pch(VCAI)
  105. install(TARGETS VCAI RUNTIME DESTINATION ${AI_LIB_DIR} LIBRARY DESTINATION ${AI_LIB_DIR})