2024-02-11 20:38:24 +02:00
|
|
|
set(lib_SRCS
|
|
|
|
StdInc.cpp
|
|
|
|
|
2024-03-27 19:30:07 +02:00
|
|
|
filesystem/AdapterLoaders.cpp
|
|
|
|
filesystem/CArchiveLoader.cpp
|
|
|
|
filesystem/CBinaryReader.cpp
|
|
|
|
filesystem/CCompressedStream.cpp
|
|
|
|
filesystem/CFileInputStream.cpp
|
|
|
|
filesystem/CFilesystemLoader.cpp
|
|
|
|
filesystem/CMemoryBuffer.cpp
|
|
|
|
filesystem/CMemoryStream.cpp
|
|
|
|
filesystem/CZipLoader.cpp
|
|
|
|
filesystem/CZipSaver.cpp
|
|
|
|
filesystem/FileInfo.cpp
|
|
|
|
filesystem/Filesystem.cpp
|
|
|
|
filesystem/MinizipExtensions.cpp
|
|
|
|
filesystem/ResourcePath.cpp
|
|
|
|
|
|
|
|
json/JsonNode.cpp
|
|
|
|
json/JsonParser.cpp
|
|
|
|
json/JsonUtils.cpp
|
|
|
|
json/JsonValidator.cpp
|
|
|
|
json/JsonWriter.cpp
|
|
|
|
|
|
|
|
logging/CBasicLogConfigurator.cpp
|
|
|
|
logging/CLogger.cpp
|
|
|
|
logging/VisualLogger.cpp
|
|
|
|
|
|
|
|
network/NetworkConnection.cpp
|
|
|
|
network/NetworkHandler.cpp
|
|
|
|
network/NetworkServer.cpp
|
|
|
|
|
2024-07-20 14:55:17 +02:00
|
|
|
texts/TextOperations.cpp
|
|
|
|
|
2024-03-27 19:30:07 +02:00
|
|
|
vstd/DateUtils.cpp
|
|
|
|
vstd/StringUtils.cpp
|
|
|
|
|
|
|
|
CConfigHandler.cpp
|
|
|
|
CConsoleHandler.cpp
|
|
|
|
CThreadHelper.cpp
|
|
|
|
VCMIDirs.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(lib_MAIN_SRCS
|
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
battle/AccessibilityInfo.cpp
|
|
|
|
battle/BattleAction.cpp
|
|
|
|
battle/BattleAttackInfo.cpp
|
|
|
|
battle/BattleHex.cpp
|
|
|
|
battle/BattleInfo.cpp
|
2024-08-31 23:04:32 +02:00
|
|
|
battle/BattleLayout.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
battle/BattleProxy.cpp
|
|
|
|
battle/BattleStateInfoForRetreat.cpp
|
|
|
|
battle/CBattleInfoCallback.cpp
|
|
|
|
battle/CBattleInfoEssentials.cpp
|
|
|
|
battle/CObstacleInstance.cpp
|
|
|
|
battle/CPlayerBattleCallback.cpp
|
|
|
|
battle/CUnitState.cpp
|
|
|
|
battle/DamageCalculator.cpp
|
|
|
|
battle/Destination.cpp
|
|
|
|
battle/IBattleState.cpp
|
|
|
|
battle/ReachabilityInfo.cpp
|
|
|
|
battle/SideInBattle.cpp
|
|
|
|
battle/SiegeInfo.cpp
|
|
|
|
battle/Unit.cpp
|
|
|
|
|
|
|
|
bonuses/Bonus.cpp
|
|
|
|
bonuses/BonusEnum.cpp
|
|
|
|
bonuses/BonusList.cpp
|
|
|
|
bonuses/BonusParams.cpp
|
|
|
|
bonuses/BonusSelector.cpp
|
|
|
|
bonuses/BonusCustomTypes.cpp
|
|
|
|
bonuses/CBonusProxy.cpp
|
|
|
|
bonuses/CBonusSystemNode.cpp
|
|
|
|
bonuses/IBonusBearer.cpp
|
|
|
|
bonuses/Limiters.cpp
|
|
|
|
bonuses/Propagators.cpp
|
|
|
|
bonuses/Updaters.cpp
|
|
|
|
|
|
|
|
campaign/CampaignHandler.cpp
|
|
|
|
campaign/CampaignState.cpp
|
|
|
|
|
|
|
|
constants/EntityIdentifiers.cpp
|
|
|
|
|
2024-07-21 12:49:40 +02:00
|
|
|
entities/building/CBuilding.cpp
|
|
|
|
entities/building/CBuildingHandler.cpp
|
|
|
|
entities/faction/CFaction.cpp
|
|
|
|
entities/faction/CTown.cpp
|
|
|
|
entities/faction/CTownHandler.cpp
|
2024-10-11 18:30:16 +02:00
|
|
|
entities/hero/CHero.cpp
|
|
|
|
entities/hero/CHeroClass.cpp
|
|
|
|
entities/hero/CHeroClassHandler.cpp
|
|
|
|
entities/hero/CHeroHandler.cpp
|
2024-07-21 12:49:40 +02:00
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
events/ApplyDamage.cpp
|
|
|
|
events/GameResumed.cpp
|
|
|
|
events/ObjectVisitEnded.cpp
|
|
|
|
events/ObjectVisitStarted.cpp
|
|
|
|
events/PlayerGotTurn.cpp
|
|
|
|
events/TurnStarted.cpp
|
|
|
|
|
2024-02-14 15:48:06 +02:00
|
|
|
json/JsonBonus.cpp
|
2024-03-29 15:02:14 +02:00
|
|
|
json/JsonRandom.cpp
|
2024-02-11 23:09:01 +02:00
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
gameState/CGameState.cpp
|
|
|
|
gameState/CGameStateCampaign.cpp
|
2024-08-02 19:37:46 +02:00
|
|
|
gameState/HighScore.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
gameState/InfoAboutArmy.cpp
|
2024-06-01 18:38:41 +02:00
|
|
|
gameState/RumorState.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
gameState/TavernHeroesPool.cpp
|
2024-07-27 02:11:26 +02:00
|
|
|
gameState/GameStatistics.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
|
|
|
|
mapObjectConstructors/AObjectTypeHandler.cpp
|
|
|
|
mapObjectConstructors/CBankInstanceConstructor.cpp
|
|
|
|
mapObjectConstructors/CObjectClassesHandler.cpp
|
|
|
|
mapObjectConstructors/CommonConstructors.cpp
|
|
|
|
mapObjectConstructors/CRewardableConstructor.cpp
|
|
|
|
mapObjectConstructors/DwellingInstanceConstructor.cpp
|
2024-10-25 18:48:10 +02:00
|
|
|
mapObjectConstructors/FlaggableInstanceConstructor.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
mapObjectConstructors/HillFortInstanceConstructor.cpp
|
|
|
|
mapObjectConstructors/ShipyardInstanceConstructor.cpp
|
|
|
|
|
|
|
|
mapObjects/CArmedInstance.cpp
|
|
|
|
mapObjects/CBank.cpp
|
|
|
|
mapObjects/CGCreature.cpp
|
|
|
|
mapObjects/CGDwelling.cpp
|
|
|
|
mapObjects/CGHeroInstance.cpp
|
|
|
|
mapObjects/CGMarket.cpp
|
|
|
|
mapObjects/CGObjectInstance.cpp
|
|
|
|
mapObjects/CGPandoraBox.cpp
|
2024-08-16 16:49:42 +02:00
|
|
|
mapObjects/TownBuildingInstance.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
mapObjects/CGTownInstance.cpp
|
|
|
|
mapObjects/CObjectHandler.cpp
|
|
|
|
mapObjects/CQuest.cpp
|
|
|
|
mapObjects/CRewardableObject.cpp
|
2024-10-25 18:48:10 +02:00
|
|
|
mapObjects/FlaggableMapObject.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
mapObjects/IMarket.cpp
|
|
|
|
mapObjects/IObjectInterface.cpp
|
|
|
|
mapObjects/MiscObjects.cpp
|
|
|
|
mapObjects/ObjectTemplate.cpp
|
2024-04-04 21:39:01 +02:00
|
|
|
mapObjects/ObstacleSetHandler.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
|
|
|
|
mapping/CDrawRoadsOperation.cpp
|
|
|
|
mapping/CMap.cpp
|
|
|
|
mapping/CMapHeader.cpp
|
|
|
|
mapping/CMapEditManager.cpp
|
|
|
|
mapping/CMapInfo.cpp
|
|
|
|
mapping/CMapOperation.cpp
|
|
|
|
mapping/CMapService.cpp
|
|
|
|
mapping/MapEditUtils.cpp
|
|
|
|
mapping/MapIdentifiersH3M.cpp
|
|
|
|
mapping/MapFeaturesH3M.cpp
|
|
|
|
mapping/MapFormatH3M.cpp
|
|
|
|
mapping/MapReaderH3M.cpp
|
|
|
|
mapping/MapFormatJson.cpp
|
|
|
|
mapping/ObstacleProxy.cpp
|
|
|
|
|
|
|
|
modding/ActiveModsInSaveList.cpp
|
|
|
|
modding/CModHandler.cpp
|
|
|
|
modding/CModVersion.cpp
|
|
|
|
modding/ContentTypeHandler.cpp
|
|
|
|
modding/IdentifierStorage.cpp
|
2024-11-09 22:29:07 +02:00
|
|
|
modding/ModDescription.cpp
|
|
|
|
modding/ModManager.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
modding/ModUtility.cpp
|
2024-04-14 14:45:13 +02:00
|
|
|
modding/ModVerificationInfo.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
|
|
|
|
networkPacks/NetPacksLib.cpp
|
|
|
|
|
|
|
|
pathfinder/CGPathNode.cpp
|
|
|
|
pathfinder/CPathfinder.cpp
|
|
|
|
pathfinder/NodeStorage.cpp
|
|
|
|
pathfinder/PathfinderOptions.cpp
|
|
|
|
pathfinder/PathfindingRules.cpp
|
|
|
|
pathfinder/TurnInfo.cpp
|
|
|
|
|
|
|
|
rewardable/Configuration.cpp
|
|
|
|
rewardable/Info.cpp
|
|
|
|
rewardable/Interface.cpp
|
|
|
|
rewardable/Limiter.cpp
|
|
|
|
rewardable/Reward.cpp
|
|
|
|
|
|
|
|
rmg/RmgArea.cpp
|
|
|
|
rmg/RmgObject.cpp
|
|
|
|
rmg/RmgPath.cpp
|
|
|
|
rmg/CMapGenerator.cpp
|
|
|
|
rmg/CMapGenOptions.cpp
|
|
|
|
rmg/CRmgTemplate.cpp
|
|
|
|
rmg/CRmgTemplateStorage.cpp
|
|
|
|
rmg/CZonePlacer.cpp
|
|
|
|
rmg/TileInfo.cpp
|
|
|
|
rmg/Zone.cpp
|
|
|
|
rmg/Functions.cpp
|
2024-08-21 20:16:41 +02:00
|
|
|
rmg/ObjectInfo.cpp
|
2024-09-14 08:41:00 +02:00
|
|
|
rmg/ObjectConfig.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
rmg/RmgMap.cpp
|
|
|
|
rmg/PenroseTiling.cpp
|
|
|
|
rmg/modificators/Modificator.cpp
|
|
|
|
rmg/modificators/ObjectManager.cpp
|
|
|
|
rmg/modificators/ObjectDistributor.cpp
|
|
|
|
rmg/modificators/RoadPlacer.cpp
|
|
|
|
rmg/modificators/TreasurePlacer.cpp
|
|
|
|
rmg/modificators/PrisonHeroPlacer.cpp
|
|
|
|
rmg/modificators/QuestArtifactPlacer.cpp
|
|
|
|
rmg/modificators/ConnectionsPlacer.cpp
|
|
|
|
rmg/modificators/WaterAdopter.cpp
|
|
|
|
rmg/modificators/MinePlacer.cpp
|
|
|
|
rmg/modificators/TownPlacer.cpp
|
|
|
|
rmg/modificators/WaterProxy.cpp
|
|
|
|
rmg/modificators/WaterRoutes.cpp
|
|
|
|
rmg/modificators/RockPlacer.cpp
|
|
|
|
rmg/modificators/RockFiller.cpp
|
|
|
|
rmg/modificators/ObstaclePlacer.cpp
|
|
|
|
rmg/modificators/RiverPlacer.cpp
|
|
|
|
rmg/modificators/TerrainPainter.cpp
|
|
|
|
rmg/threadpool/MapProxy.cpp
|
|
|
|
|
|
|
|
serializer/BinaryDeserializer.cpp
|
|
|
|
serializer/BinarySerializer.cpp
|
|
|
|
serializer/CLoadFile.cpp
|
|
|
|
serializer/CMemorySerializer.cpp
|
|
|
|
serializer/Connection.cpp
|
|
|
|
serializer/CSaveFile.cpp
|
|
|
|
serializer/CSerializer.cpp
|
|
|
|
serializer/CTypeList.cpp
|
|
|
|
serializer/JsonDeserializer.cpp
|
|
|
|
serializer/JsonSerializeFormat.cpp
|
|
|
|
serializer/JsonSerializer.cpp
|
|
|
|
serializer/JsonUpdater.cpp
|
2024-08-24 00:32:02 +02:00
|
|
|
serializer/SerializerReflection.cpp
|
2024-02-11 20:38:24 +02:00
|
|
|
|
|
|
|
spells/AbilityCaster.cpp
|
|
|
|
spells/AdventureSpellMechanics.cpp
|
|
|
|
spells/BattleSpellMechanics.cpp
|
|
|
|
spells/BonusCaster.cpp
|
|
|
|
spells/CSpellHandler.cpp
|
|
|
|
spells/ExternalCaster.cpp
|
|
|
|
spells/ISpellMechanics.cpp
|
|
|
|
spells/ObstacleCasterProxy.cpp
|
|
|
|
spells/Problem.cpp
|
|
|
|
spells/ProxyCaster.cpp
|
|
|
|
spells/TargetCondition.cpp
|
|
|
|
spells/ViewSpellInt.cpp
|
|
|
|
|
|
|
|
spells/effects/Catapult.cpp
|
|
|
|
spells/effects/Clone.cpp
|
|
|
|
spells/effects/Damage.cpp
|
|
|
|
spells/effects/DemonSummon.cpp
|
|
|
|
spells/effects/Dispel.cpp
|
|
|
|
spells/effects/Effect.cpp
|
|
|
|
spells/effects/Effects.cpp
|
|
|
|
spells/effects/Heal.cpp
|
|
|
|
spells/effects/LocationEffect.cpp
|
|
|
|
spells/effects/Moat.cpp
|
|
|
|
spells/effects/Obstacle.cpp
|
|
|
|
spells/effects/Registry.cpp
|
|
|
|
spells/effects/UnitEffect.cpp
|
|
|
|
spells/effects/Summon.cpp
|
|
|
|
spells/effects/Teleport.cpp
|
|
|
|
spells/effects/Timed.cpp
|
|
|
|
spells/effects/RemoveObstacle.cpp
|
|
|
|
spells/effects/Sacrifice.cpp
|
|
|
|
|
2024-07-20 14:55:17 +02:00
|
|
|
texts/CGeneralTextHandler.cpp
|
|
|
|
texts/CLegacyConfigParser.cpp
|
|
|
|
texts/MetaString.cpp
|
|
|
|
texts/TextLocalizationContainer.cpp
|
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
ArtifactUtils.cpp
|
|
|
|
BasicTypes.cpp
|
|
|
|
BattleFieldHandler.cpp
|
|
|
|
CAndroidVMHelper.cpp
|
|
|
|
CArtHandler.cpp
|
|
|
|
CArtifactInstance.cpp
|
|
|
|
CBonusTypeHandler.cpp
|
|
|
|
CCreatureHandler.cpp
|
|
|
|
CCreatureSet.cpp
|
|
|
|
CGameInfoCallback.cpp
|
|
|
|
CGameInterface.cpp
|
|
|
|
CPlayerState.cpp
|
|
|
|
CRandomGenerator.cpp
|
|
|
|
CScriptingModule.cpp
|
|
|
|
CSkillHandler.cpp
|
|
|
|
CStack.cpp
|
|
|
|
GameSettings.cpp
|
|
|
|
IGameCallback.cpp
|
|
|
|
IHandlerBase.cpp
|
|
|
|
LoadProgress.cpp
|
|
|
|
LogicalExpression.cpp
|
|
|
|
ObstacleHandler.cpp
|
|
|
|
StartInfo.cpp
|
|
|
|
ResourceSet.cpp
|
|
|
|
RiverHandler.cpp
|
|
|
|
RoadHandler.cpp
|
|
|
|
ScriptHandler.cpp
|
|
|
|
TerrainHandler.cpp
|
|
|
|
TurnTimerInfo.cpp
|
|
|
|
VCMI_Lib.cpp
|
|
|
|
)
|
|
|
|
|
2024-03-27 19:30:07 +02:00
|
|
|
if (NOT ENABLE_MINIMAL_LIB)
|
|
|
|
list(APPEND lib_SRCS ${lib_MAIN_SRCS})
|
|
|
|
endif()
|
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
# Version.cpp is a generated file
|
|
|
|
if(ENABLE_GITVERSION)
|
|
|
|
list(APPEND lib_SRCS ${CMAKE_BINARY_DIR}/Version.cpp)
|
|
|
|
set_source_files_properties(${CMAKE_BINARY_DIR}/Version.cpp
|
|
|
|
PROPERTIES GENERATED TRUE
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(lib_HEADERS
|
|
|
|
../include/vstd/CLoggerBase.h
|
2024-03-27 19:30:07 +02:00
|
|
|
../include/vstd/DateUtils.h
|
|
|
|
../include/vstd/StringUtils.h
|
2024-02-11 20:38:24 +02:00
|
|
|
../Global.h
|
|
|
|
../AUTHORS.h
|
|
|
|
StdInc.h
|
|
|
|
|
2024-03-27 19:30:07 +02:00
|
|
|
filesystem/AdapterLoaders.h
|
|
|
|
filesystem/CArchiveLoader.h
|
|
|
|
filesystem/CBinaryReader.h
|
|
|
|
filesystem/CCompressedStream.h
|
|
|
|
filesystem/CFileInputStream.h
|
|
|
|
filesystem/CFilesystemLoader.h
|
|
|
|
filesystem/CInputOutputStream.h
|
|
|
|
filesystem/CInputStream.h
|
|
|
|
filesystem/CMemoryBuffer.h
|
|
|
|
filesystem/CMemoryStream.h
|
|
|
|
filesystem/COutputStream.h
|
|
|
|
filesystem/CStream.h
|
|
|
|
filesystem/CZipLoader.h
|
|
|
|
filesystem/CZipSaver.h
|
|
|
|
filesystem/FileInfo.h
|
|
|
|
filesystem/Filesystem.h
|
|
|
|
filesystem/ISimpleResourceLoader.h
|
|
|
|
filesystem/MinizipExtensions.h
|
|
|
|
filesystem/ResourcePath.h
|
|
|
|
|
|
|
|
json/JsonFormatException.h
|
|
|
|
json/JsonNode.h
|
|
|
|
json/JsonParser.h
|
|
|
|
json/JsonUtils.h
|
|
|
|
json/JsonValidator.h
|
|
|
|
json/JsonWriter.h
|
|
|
|
|
|
|
|
logging/CBasicLogConfigurator.h
|
|
|
|
logging/CLogger.h
|
|
|
|
logging/VisualLogger.h
|
|
|
|
|
|
|
|
network/NetworkConnection.h
|
|
|
|
network/NetworkDefines.h
|
|
|
|
network/NetworkHandler.h
|
|
|
|
network/NetworkInterface.h
|
|
|
|
network/NetworkServer.h
|
|
|
|
|
2024-07-20 14:55:17 +02:00
|
|
|
texts/TextOperations.h
|
|
|
|
|
2024-03-27 19:30:07 +02:00
|
|
|
CConfigHandler.h
|
|
|
|
CConsoleHandler.h
|
|
|
|
CThreadHelper.h
|
|
|
|
VCMIDirs.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(lib_MAIN_HEADERS
|
2024-02-11 20:38:24 +02:00
|
|
|
../include/vstd/ContainerUtils.h
|
|
|
|
../include/vstd/RNG.h
|
|
|
|
|
|
|
|
../include/vcmi/events/AdventureEvents.h
|
|
|
|
../include/vcmi/events/ApplyDamage.h
|
|
|
|
../include/vcmi/events/BattleEvents.h
|
|
|
|
../include/vcmi/events/Event.h
|
|
|
|
../include/vcmi/events/EventBus.h
|
|
|
|
../include/vcmi/events/GameResumed.h
|
|
|
|
../include/vcmi/events/GenericEvents.h
|
|
|
|
../include/vcmi/events/ObjectVisitEnded.h
|
|
|
|
../include/vcmi/events/ObjectVisitStarted.h
|
|
|
|
../include/vcmi/events/PlayerGotTurn.h
|
|
|
|
../include/vcmi/events/SubscriptionRegistry.h
|
|
|
|
../include/vcmi/events/TurnStarted.h
|
|
|
|
|
|
|
|
../include/vcmi/scripting/Service.h
|
|
|
|
|
|
|
|
../include/vcmi/spells/Caster.h
|
|
|
|
../include/vcmi/spells/Magic.h
|
|
|
|
../include/vcmi/spells/Service.h
|
|
|
|
../include/vcmi/spells/Spell.h
|
|
|
|
|
|
|
|
../include/vcmi/Artifact.h
|
|
|
|
../include/vcmi/ArtifactService.h
|
|
|
|
../include/vcmi/Creature.h
|
|
|
|
../include/vcmi/CreatureService.h
|
|
|
|
../include/vcmi/Entity.h
|
|
|
|
../include/vcmi/Environment.h
|
|
|
|
../include/vcmi/Faction.h
|
|
|
|
../include/vcmi/FactionService.h
|
|
|
|
../include/vcmi/HeroClass.h
|
|
|
|
../include/vcmi/HeroClassService.h
|
|
|
|
../include/vcmi/HeroType.h
|
|
|
|
../include/vcmi/HeroTypeService.h
|
|
|
|
../include/vcmi/Metatype.h
|
|
|
|
../include/vcmi/Player.h
|
|
|
|
../include/vcmi/ServerCallback.h
|
|
|
|
../include/vcmi/Services.h
|
|
|
|
../include/vcmi/Skill.h
|
|
|
|
../include/vcmi/SkillService.h
|
|
|
|
../include/vcmi/Team.h
|
|
|
|
|
|
|
|
battle/AccessibilityInfo.h
|
|
|
|
battle/AutocombatPreferences.h
|
|
|
|
battle/BattleAction.h
|
|
|
|
battle/BattleAttackInfo.h
|
|
|
|
battle/BattleHex.h
|
|
|
|
battle/BattleInfo.h
|
2024-08-31 23:04:32 +02:00
|
|
|
battle/BattleLayout.h
|
2024-08-11 22:22:35 +02:00
|
|
|
battle/BattleSide.h
|
2024-02-11 20:38:24 +02:00
|
|
|
battle/BattleStateInfoForRetreat.h
|
|
|
|
battle/BattleProxy.h
|
|
|
|
battle/CBattleInfoCallback.h
|
|
|
|
battle/CBattleInfoEssentials.h
|
|
|
|
battle/CObstacleInstance.h
|
|
|
|
battle/CPlayerBattleCallback.h
|
|
|
|
battle/CUnitState.h
|
|
|
|
battle/DamageCalculator.h
|
|
|
|
battle/Destination.h
|
|
|
|
battle/IBattleInfoCallback.h
|
|
|
|
battle/IBattleState.h
|
|
|
|
battle/IUnitInfo.h
|
|
|
|
battle/PossiblePlayerBattleAction.h
|
|
|
|
battle/ReachabilityInfo.h
|
|
|
|
battle/SideInBattle.h
|
|
|
|
battle/SiegeInfo.h
|
|
|
|
battle/Unit.h
|
|
|
|
|
|
|
|
bonuses/Bonus.h
|
|
|
|
bonuses/BonusEnum.h
|
|
|
|
bonuses/BonusList.h
|
|
|
|
bonuses/BonusParams.h
|
|
|
|
bonuses/BonusSelector.h
|
|
|
|
bonuses/BonusCustomTypes.h
|
|
|
|
bonuses/CBonusProxy.h
|
|
|
|
bonuses/CBonusSystemNode.h
|
|
|
|
bonuses/IBonusBearer.h
|
|
|
|
bonuses/Limiters.h
|
|
|
|
bonuses/Propagators.h
|
|
|
|
bonuses/Updaters.h
|
|
|
|
|
|
|
|
campaign/CampaignConstants.h
|
|
|
|
campaign/CampaignHandler.h
|
|
|
|
campaign/CampaignScenarioPrologEpilog.h
|
|
|
|
campaign/CampaignState.h
|
|
|
|
|
|
|
|
constants/EntityIdentifiers.h
|
|
|
|
constants/Enumerations.h
|
|
|
|
constants/IdentifierBase.h
|
|
|
|
constants/VariantIdentifier.h
|
|
|
|
constants/NumericConstants.h
|
|
|
|
constants/StringConstants.h
|
|
|
|
|
2024-07-21 12:49:40 +02:00
|
|
|
entities/building/CBuilding.h
|
|
|
|
entities/building/CBuildingHandler.h
|
2024-08-28 21:33:56 +02:00
|
|
|
entities/building/TownFortifications.h
|
2024-07-21 12:49:40 +02:00
|
|
|
entities/faction/CFaction.h
|
|
|
|
entities/faction/CTown.h
|
|
|
|
entities/faction/CTownHandler.h
|
2024-10-11 18:30:16 +02:00
|
|
|
entities/hero/CHero.h
|
|
|
|
entities/hero/CHeroClass.h
|
|
|
|
entities/hero/CHeroClassHandler.h
|
|
|
|
entities/hero/CHeroHandler.h
|
|
|
|
entities/hero/EHeroGender.h
|
2024-07-21 12:49:40 +02:00
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
events/ApplyDamage.h
|
|
|
|
events/GameResumed.h
|
|
|
|
events/ObjectVisitEnded.h
|
|
|
|
events/ObjectVisitStarted.h
|
|
|
|
events/PlayerGotTurn.h
|
|
|
|
events/TurnStarted.h
|
|
|
|
|
2024-03-29 15:02:14 +02:00
|
|
|
json/JsonBonus.h
|
|
|
|
json/JsonRandom.h
|
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
gameState/CGameState.h
|
|
|
|
gameState/CGameStateCampaign.h
|
|
|
|
gameState/EVictoryLossCheckResult.h
|
2024-07-26 03:33:44 +02:00
|
|
|
gameState/HighScore.h
|
2024-02-11 20:38:24 +02:00
|
|
|
gameState/InfoAboutArmy.h
|
2024-06-01 18:38:41 +02:00
|
|
|
gameState/RumorState.h
|
2024-02-11 20:38:24 +02:00
|
|
|
gameState/SThievesGuildInfo.h
|
|
|
|
gameState/TavernHeroesPool.h
|
2024-07-27 02:11:26 +02:00
|
|
|
gameState/GameStatistics.h
|
2024-02-11 20:38:24 +02:00
|
|
|
gameState/TavernSlot.h
|
|
|
|
gameState/QuestInfo.h
|
|
|
|
|
|
|
|
mapObjectConstructors/AObjectTypeHandler.h
|
|
|
|
mapObjectConstructors/CBankInstanceConstructor.h
|
|
|
|
mapObjectConstructors/CDefaultObjectTypeHandler.h
|
|
|
|
mapObjectConstructors/CObjectClassesHandler.h
|
|
|
|
mapObjectConstructors/CommonConstructors.h
|
|
|
|
mapObjectConstructors/CRewardableConstructor.h
|
|
|
|
mapObjectConstructors/DwellingInstanceConstructor.h
|
|
|
|
mapObjectConstructors/HillFortInstanceConstructor.h
|
2024-10-25 18:48:10 +02:00
|
|
|
mapObjectConstructors/FlaggableInstanceConstructor.h
|
2024-02-11 20:38:24 +02:00
|
|
|
mapObjectConstructors/IObjectInfo.h
|
|
|
|
mapObjectConstructors/RandomMapInfo.h
|
|
|
|
mapObjectConstructors/ShipyardInstanceConstructor.h
|
|
|
|
mapObjectConstructors/SObjectSounds.h
|
|
|
|
|
|
|
|
mapObjects/CArmedInstance.h
|
|
|
|
mapObjects/CBank.h
|
|
|
|
mapObjects/CGCreature.h
|
|
|
|
mapObjects/CGDwelling.h
|
|
|
|
mapObjects/CGHeroInstance.h
|
|
|
|
mapObjects/CGMarket.h
|
|
|
|
mapObjects/CGObjectInstance.h
|
|
|
|
mapObjects/CGPandoraBox.h
|
2024-08-16 16:49:42 +02:00
|
|
|
mapObjects/TownBuildingInstance.h
|
2024-02-11 20:38:24 +02:00
|
|
|
mapObjects/CGTownInstance.h
|
|
|
|
mapObjects/CObjectHandler.h
|
|
|
|
mapObjects/CQuest.h
|
|
|
|
mapObjects/CRewardableObject.h
|
2024-10-25 18:48:10 +02:00
|
|
|
mapObjects/FlaggableMapObject.h
|
2024-02-11 20:38:24 +02:00
|
|
|
mapObjects/IMarket.h
|
|
|
|
mapObjects/IObjectInterface.h
|
2024-08-24 22:42:19 +02:00
|
|
|
mapObjects/IOwnableObject.h
|
2024-02-11 20:38:24 +02:00
|
|
|
mapObjects/MapObjects.h
|
|
|
|
mapObjects/MiscObjects.h
|
2024-09-14 08:55:28 +02:00
|
|
|
mapObjects/CompoundMapObjectID.h
|
2024-02-11 20:38:24 +02:00
|
|
|
mapObjects/ObjectTemplate.h
|
2024-04-04 21:39:01 +02:00
|
|
|
mapObjects/ObstacleSetHandler.h
|
2024-02-11 20:38:24 +02:00
|
|
|
|
|
|
|
mapping/CDrawRoadsOperation.h
|
|
|
|
mapping/CMapDefines.h
|
|
|
|
mapping/CMapEditManager.h
|
|
|
|
mapping/CMapHeader.h
|
|
|
|
mapping/CMap.h
|
|
|
|
mapping/CMapInfo.h
|
|
|
|
mapping/CMapOperation.h
|
|
|
|
mapping/CMapService.h
|
|
|
|
mapping/MapEditUtils.h
|
|
|
|
mapping/MapIdentifiersH3M.h
|
|
|
|
mapping/MapFeaturesH3M.h
|
|
|
|
mapping/MapFormatH3M.h
|
|
|
|
mapping/MapFormat.h
|
|
|
|
mapping/MapReaderH3M.h
|
|
|
|
mapping/MapFormatJson.h
|
|
|
|
mapping/ObstacleProxy.h
|
|
|
|
|
|
|
|
modding/ActiveModsInSaveList.h
|
|
|
|
modding/CModHandler.h
|
|
|
|
modding/CModVersion.h
|
|
|
|
modding/ContentTypeHandler.h
|
|
|
|
modding/IdentifierStorage.h
|
2024-11-09 22:29:07 +02:00
|
|
|
modding/ModDescription.h
|
2024-02-11 20:38:24 +02:00
|
|
|
modding/ModIncompatibility.h
|
2024-11-09 22:29:07 +02:00
|
|
|
modding/ModManager.h
|
2024-02-11 20:38:24 +02:00
|
|
|
modding/ModScope.h
|
|
|
|
modding/ModUtility.h
|
|
|
|
modding/ModVerificationInfo.h
|
|
|
|
|
|
|
|
networkPacks/ArtifactLocation.h
|
|
|
|
networkPacks/BattleChanges.h
|
|
|
|
networkPacks/Component.h
|
|
|
|
networkPacks/EInfoWindowMode.h
|
|
|
|
networkPacks/EntityChanges.h
|
|
|
|
networkPacks/EOpenWindowMode.h
|
|
|
|
networkPacks/NetPacksBase.h
|
|
|
|
networkPacks/NetPackVisitor.h
|
|
|
|
networkPacks/ObjProperty.h
|
|
|
|
networkPacks/PacksForClient.h
|
|
|
|
networkPacks/PacksForClientBattle.h
|
|
|
|
networkPacks/PacksForLobby.h
|
|
|
|
networkPacks/PacksForServer.h
|
2024-07-12 17:10:03 +02:00
|
|
|
networkPacks/SetRewardableConfiguration.h
|
2024-02-11 20:38:24 +02:00
|
|
|
networkPacks/SetStackEffect.h
|
2024-10-08 21:55:51 +02:00
|
|
|
networkPacks/SaveLocalState.h
|
2024-02-11 20:38:24 +02:00
|
|
|
networkPacks/StackLocation.h
|
|
|
|
networkPacks/TradeItem.h
|
|
|
|
|
|
|
|
pathfinder/INodeStorage.h
|
|
|
|
pathfinder/CGPathNode.h
|
|
|
|
pathfinder/CPathfinder.h
|
|
|
|
pathfinder/NodeStorage.h
|
|
|
|
pathfinder/PathfinderOptions.h
|
|
|
|
pathfinder/PathfinderUtil.h
|
|
|
|
pathfinder/PathfindingRules.h
|
|
|
|
pathfinder/TurnInfo.h
|
|
|
|
|
|
|
|
rewardable/Configuration.h
|
|
|
|
rewardable/Info.h
|
|
|
|
rewardable/Interface.h
|
|
|
|
rewardable/Limiter.h
|
|
|
|
rewardable/Reward.h
|
|
|
|
|
|
|
|
rmg/RmgArea.h
|
|
|
|
rmg/RmgObject.h
|
|
|
|
rmg/RmgPath.h
|
|
|
|
rmg/CMapGenerator.h
|
|
|
|
rmg/CMapGenOptions.h
|
|
|
|
rmg/CRmgTemplate.h
|
|
|
|
rmg/CRmgTemplateStorage.h
|
|
|
|
rmg/CZonePlacer.h
|
|
|
|
rmg/TileInfo.h
|
|
|
|
rmg/Zone.h
|
|
|
|
rmg/RmgMap.h
|
|
|
|
rmg/float3.h
|
|
|
|
rmg/Functions.h
|
2024-08-21 20:16:41 +02:00
|
|
|
rmg/ObjectInfo.h
|
2024-09-14 08:41:00 +02:00
|
|
|
rmg/ObjectConfig.h
|
2024-02-11 20:38:24 +02:00
|
|
|
rmg/PenroseTiling.h
|
|
|
|
rmg/modificators/Modificator.h
|
|
|
|
rmg/modificators/ObjectManager.h
|
|
|
|
rmg/modificators/ObjectDistributor.h
|
|
|
|
rmg/modificators/RoadPlacer.h
|
|
|
|
rmg/modificators/TreasurePlacer.h
|
|
|
|
rmg/modificators/PrisonHeroPlacer.h
|
|
|
|
rmg/modificators/QuestArtifactPlacer.h
|
|
|
|
rmg/modificators/ConnectionsPlacer.h
|
|
|
|
rmg/modificators/WaterAdopter.h
|
|
|
|
rmg/modificators/MinePlacer.h
|
|
|
|
rmg/modificators/TownPlacer.h
|
|
|
|
rmg/modificators/WaterProxy.h
|
|
|
|
rmg/modificators/WaterRoutes.h
|
|
|
|
rmg/modificators/RockPlacer.h
|
|
|
|
rmg/modificators/RockFiller.h
|
|
|
|
rmg/modificators/ObstaclePlacer.h
|
|
|
|
rmg/modificators/RiverPlacer.h
|
|
|
|
rmg/modificators/TerrainPainter.h
|
|
|
|
rmg/threadpool/BlockingQueue.h
|
|
|
|
rmg/threadpool/ThreadPool.h
|
|
|
|
rmg/threadpool/MapProxy.h
|
|
|
|
|
|
|
|
serializer/BinaryDeserializer.h
|
|
|
|
serializer/BinarySerializer.h
|
|
|
|
serializer/CLoadFile.h
|
|
|
|
serializer/CMemorySerializer.h
|
|
|
|
serializer/Connection.h
|
|
|
|
serializer/CSaveFile.h
|
|
|
|
serializer/CSerializer.h
|
|
|
|
serializer/CTypeList.h
|
|
|
|
serializer/JsonDeserializer.h
|
|
|
|
serializer/JsonSerializeFormat.h
|
|
|
|
serializer/JsonSerializer.h
|
|
|
|
serializer/JsonUpdater.h
|
|
|
|
serializer/ESerializationVersion.h
|
2024-08-24 01:02:17 +02:00
|
|
|
serializer/RegisterTypes.h
|
2024-05-07 21:17:05 +02:00
|
|
|
serializer/Serializeable.h
|
2024-08-24 00:32:02 +02:00
|
|
|
serializer/SerializerReflection.h
|
2024-02-11 20:38:24 +02:00
|
|
|
|
|
|
|
spells/AbilityCaster.h
|
|
|
|
spells/AdventureSpellMechanics.h
|
|
|
|
spells/BattleSpellMechanics.h
|
|
|
|
spells/BonusCaster.h
|
|
|
|
spells/CSpellHandler.h
|
|
|
|
spells/ExternalCaster.h
|
|
|
|
spells/ISpellMechanics.h
|
|
|
|
spells/ObstacleCasterProxy.h
|
|
|
|
spells/Problem.h
|
|
|
|
spells/ProxyCaster.h
|
|
|
|
spells/TargetCondition.h
|
|
|
|
spells/ViewSpellInt.h
|
|
|
|
|
|
|
|
spells/effects/Catapult.h
|
|
|
|
spells/effects/Clone.h
|
|
|
|
spells/effects/Damage.h
|
|
|
|
spells/effects/DemonSummon.h
|
|
|
|
spells/effects/Dispel.h
|
|
|
|
spells/effects/Effect.h
|
|
|
|
spells/effects/Effects.h
|
|
|
|
spells/effects/EffectsFwd.h
|
|
|
|
spells/effects/Heal.h
|
|
|
|
spells/effects/LocationEffect.h
|
|
|
|
spells/effects/Obstacle.h
|
|
|
|
spells/effects/Registry.h
|
|
|
|
spells/effects/UnitEffect.h
|
|
|
|
spells/effects/Summon.h
|
|
|
|
spells/effects/Teleport.h
|
|
|
|
spells/effects/Timed.h
|
|
|
|
spells/effects/RemoveObstacle.h
|
|
|
|
spells/effects/Sacrifice.h
|
|
|
|
|
2024-07-20 14:55:17 +02:00
|
|
|
texts/CGeneralTextHandler.h
|
|
|
|
texts/Languages.h
|
|
|
|
texts/CLegacyConfigParser.h
|
|
|
|
texts/MetaString.h
|
|
|
|
texts/TextIdentifier.h
|
|
|
|
texts/TextLocalizationContainer.h
|
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
AI_Base.h
|
|
|
|
ArtifactUtils.h
|
|
|
|
BattleFieldHandler.h
|
|
|
|
CAndroidVMHelper.h
|
|
|
|
CArtHandler.h
|
|
|
|
CArtifactInstance.h
|
|
|
|
CBonusTypeHandler.h
|
|
|
|
CCreatureHandler.h
|
|
|
|
CCreatureSet.h
|
|
|
|
CGameInfoCallback.h
|
|
|
|
CGameInterface.h
|
|
|
|
ConstTransitivePtr.h
|
|
|
|
Color.h
|
|
|
|
CPlayerState.h
|
|
|
|
CRandomGenerator.h
|
|
|
|
CScriptingModule.h
|
|
|
|
CSkillHandler.h
|
|
|
|
CSoundBase.h
|
|
|
|
CStack.h
|
|
|
|
CStopWatch.h
|
2024-05-13 17:41:47 +02:00
|
|
|
ExceptionsCommon.h
|
2024-02-11 20:38:24 +02:00
|
|
|
ExtraOptionsInfo.h
|
|
|
|
FunctionList.h
|
|
|
|
GameCallbackHolder.h
|
|
|
|
GameConstants.h
|
|
|
|
GameSettings.h
|
|
|
|
IBonusTypeHandler.h
|
|
|
|
IGameCallback.h
|
|
|
|
IGameEventsReceiver.h
|
2024-08-31 13:00:36 +02:00
|
|
|
IGameSettings.h
|
2024-02-11 20:38:24 +02:00
|
|
|
IHandlerBase.h
|
|
|
|
int3.h
|
|
|
|
LoadProgress.h
|
|
|
|
LogicalExpression.h
|
|
|
|
ObstacleHandler.h
|
|
|
|
Point.h
|
|
|
|
Rect.h
|
|
|
|
Rect.cpp
|
|
|
|
ResourceSet.h
|
|
|
|
RiverHandler.h
|
|
|
|
RoadHandler.h
|
|
|
|
ScriptHandler.h
|
|
|
|
ScopeGuard.h
|
|
|
|
StartInfo.h
|
|
|
|
TerrainHandler.h
|
|
|
|
TurnTimerInfo.h
|
|
|
|
UnlockGuard.h
|
|
|
|
vcmi_endian.h
|
|
|
|
VCMI_Lib.h
|
|
|
|
)
|
|
|
|
|
2024-03-27 19:30:07 +02:00
|
|
|
if (NOT ENABLE_MINIMAL_LIB)
|
|
|
|
list(APPEND lib_HEADERS ${lib_MAIN_HEADERS})
|
|
|
|
endif()
|
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
assign_source_group(${lib_SRCS} ${lib_HEADERS})
|
|
|
|
|
|
|
|
if(ENABLE_STATIC_LIBS)
|
|
|
|
add_library(vcmi STATIC ${lib_SRCS} ${lib_HEADERS})
|
|
|
|
else()
|
|
|
|
add_library(vcmi SHARED ${lib_SRCS} ${lib_HEADERS})
|
|
|
|
endif()
|
2024-03-27 19:30:07 +02:00
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
set_target_properties(vcmi PROPERTIES COMPILE_DEFINITIONS "VCMI_DLL=1")
|
|
|
|
target_link_libraries(vcmi PUBLIC
|
2024-07-25 16:41:37 +02:00
|
|
|
minizip::minizip ZLIB::ZLIB TBB::tbb
|
2024-02-11 20:38:24 +02:00
|
|
|
${SYSTEM_LIBS} Boost::boost Boost::thread Boost::filesystem Boost::program_options Boost::locale Boost::date_time
|
|
|
|
)
|
|
|
|
|
2024-03-27 17:24:18 +02:00
|
|
|
if(ENABLE_STATIC_LIBS AND ENABLE_CLIENT)
|
2024-02-11 20:38:24 +02:00
|
|
|
target_compile_definitions(vcmi PRIVATE STATIC_AI)
|
|
|
|
target_link_libraries(vcmi PRIVATE
|
2023-02-26 10:39:56 +02:00
|
|
|
BattleAI
|
2023-02-28 12:08:58 +02:00
|
|
|
EmptyAI
|
|
|
|
StupidAI
|
2023-02-26 10:39:56 +02:00
|
|
|
VCAI
|
|
|
|
)
|
|
|
|
if(ENABLE_NULLKILLER_AI)
|
2024-02-11 20:38:24 +02:00
|
|
|
target_link_libraries(vcmi PRIVATE Nullkiller)
|
2023-02-26 10:39:56 +02:00
|
|
|
endif()
|
2023-02-26 09:39:36 +02:00
|
|
|
endif()
|
2024-02-10 19:57:23 +02:00
|
|
|
|
2024-02-10 23:56:02 +02:00
|
|
|
# no longer necessary, but might be useful to keep in future
|
|
|
|
# unfortunately at the moment tests do not support namespaced build, so enable only on some systems
|
|
|
|
if(APPLE_IOS OR ANDROID)
|
2024-02-11 20:38:24 +02:00
|
|
|
target_compile_definitions(vcmi PUBLIC VCMI_LIB_NAMESPACE=VCMI)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(APPLE_IOS)
|
|
|
|
target_link_libraries(vcmi PUBLIC iOS_utils)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
target_include_directories(vcmi
|
|
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
PUBLIC ${CMAKE_SOURCE_DIR}
|
|
|
|
PUBLIC ${CMAKE_SOURCE_DIR}/include
|
|
|
|
)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set_target_properties(vcmi
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME "VCMI_lib"
|
|
|
|
PROJECT_LABEL "VCMI_lib"
|
|
|
|
)
|
2024-02-10 23:56:02 +02:00
|
|
|
endif()
|
2024-02-10 19:57:23 +02:00
|
|
|
|
2024-11-17 01:14:54 +02:00
|
|
|
# Use '-Wa,-mbig-obj' for files that generate very large object files
|
2024-11-16 23:41:05 +02:00
|
|
|
# when compiling with MinGW lest you get "too many sections" assembler errors
|
|
|
|
if(MINGW AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
|
|
set_source_files_properties(
|
|
|
|
serializer/SerializerReflection.cpp
|
|
|
|
IGameCallback.cpp
|
|
|
|
PROPERTIES
|
2024-11-16 23:46:27 +02:00
|
|
|
COMPILE_OPTIONS "-Wa,-mbig-obj")
|
2024-11-16 23:41:05 +02:00
|
|
|
endif()
|
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
vcmi_set_output_dir(vcmi "")
|
|
|
|
|
|
|
|
enable_pch(vcmi)
|
|
|
|
|
|
|
|
# We want to deploy assets into build directory for easier debugging without install
|
|
|
|
if(COPY_CONFIG_ON_BUILD)
|
|
|
|
add_custom_command(TARGET vcmi POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/config
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/Mods
|
2024-02-12 16:35:18 +02:00
|
|
|
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_SOURCE_DIR}/cmake_modules/create_link.cmake ${CMAKE_SOURCE_DIR}/config ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/config
|
|
|
|
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_SOURCE_DIR}/cmake_modules/create_link.cmake ${CMAKE_SOURCE_DIR}/Mods ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/Mods
|
2024-02-11 20:38:24 +02:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Update version before vcmi compiling
|
|
|
|
if(TARGET update_version)
|
|
|
|
add_dependencies(vcmi update_version)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT ENABLE_STATIC_LIBS)
|
|
|
|
install(TARGETS vcmi RUNTIME DESTINATION ${LIB_DIR} LIBRARY DESTINATION ${LIB_DIR})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(APPLE_IOS AND NOT USING_CONAN)
|
2024-07-25 16:41:37 +02:00
|
|
|
install(IMPORTED_RUNTIME_ARTIFACTS TBB::tbb LIBRARY DESTINATION ${LIB_DIR}) # CMake 3.21+
|
|
|
|
|
2024-02-11 20:38:24 +02:00
|
|
|
get_target_property(LINKED_LIBS vcmi LINK_LIBRARIES)
|
|
|
|
foreach(LINKED_LIB IN LISTS LINKED_LIBS)
|
|
|
|
if(NOT TARGET ${LINKED_LIB})
|
|
|
|
if(LINKED_LIB MATCHES "\\${CMAKE_SHARED_LIBRARY_SUFFIX}$")
|
|
|
|
install(FILES ${LINKED_LIB} DESTINATION ${LIB_DIR})
|
|
|
|
endif()
|
|
|
|
continue()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
get_target_property(LIB_TYPE ${LINKED_LIB} TYPE)
|
|
|
|
if(NOT LIB_TYPE STREQUAL "SHARED_LIBRARY")
|
|
|
|
continue()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
get_target_property(_aliased ${LINKED_LIB} ALIASED_TARGET)
|
|
|
|
if(_aliased)
|
|
|
|
set(LINKED_LIB_REAL ${_aliased})
|
|
|
|
else()
|
|
|
|
set(LINKED_LIB_REAL ${LINKED_LIB})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
get_target_property(_imported ${LINKED_LIB_REAL} IMPORTED)
|
|
|
|
if(_imported)
|
|
|
|
set(INSTALL_TYPE IMPORTED_RUNTIME_ARTIFACTS)
|
|
|
|
get_target_property(BOOST_DEPENDENCIES ${LINKED_LIB_REAL} INTERFACE_LINK_LIBRARIES)
|
|
|
|
foreach(BOOST_DEPENDENCY IN LISTS BOOST_DEPENDENCIES)
|
|
|
|
get_target_property(BOOST_DEPENDENCY_TYPE ${BOOST_DEPENDENCY} TYPE)
|
|
|
|
if(BOOST_DEPENDENCY_TYPE STREQUAL "SHARED_LIBRARY")
|
|
|
|
install(IMPORTED_RUNTIME_ARTIFACTS ${BOOST_DEPENDENCY} LIBRARY DESTINATION ${LIB_DIR})
|
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
else()
|
|
|
|
set(INSTALL_TYPE TARGETS)
|
|
|
|
endif()
|
|
|
|
install(${INSTALL_TYPE} ${LINKED_LIB_REAL} LIBRARY DESTINATION ${LIB_DIR})
|
|
|
|
endforeach()
|
2024-02-11 23:09:01 +02:00
|
|
|
endif()
|