2016-08-12 08:38:26 +02:00
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/include ${CMAKE_CURRENT_SOURCE_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/lib)
|
2017-08-15 20:18:02 +02:00
|
|
|
include_directories(${Boost_INCLUDE_DIRS} ${SDL2_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
|
2013-01-06 22:30:12 +03:00
|
|
|
|
|
|
|
set(lib_SRCS
|
2014-02-05 23:25:36 +03:00
|
|
|
StdInc.cpp
|
2016-10-23 16:56:53 +02:00
|
|
|
${CMAKE_BINARY_DIR}/Version.cpp
|
2014-02-24 22:57:33 +03:00
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
battle/AccessibilityInfo.cpp
|
|
|
|
battle/BattleAction.cpp
|
|
|
|
battle/BattleAttackInfo.cpp
|
|
|
|
battle/BattleHex.cpp
|
|
|
|
battle/BattleInfo.cpp
|
2017-07-20 06:08:49 +02:00
|
|
|
battle/BattleProxy.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
battle/CBattleInfoCallback.cpp
|
|
|
|
battle/CBattleInfoEssentials.cpp
|
|
|
|
battle/CCallbackBase.cpp
|
|
|
|
battle/CObstacleInstance.cpp
|
|
|
|
battle/CPlayerBattleCallback.cpp
|
2017-07-20 06:08:49 +02:00
|
|
|
battle/CUnitState.cpp
|
|
|
|
battle/Destination.cpp
|
|
|
|
battle/IBattleState.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
battle/ReachabilityInfo.cpp
|
|
|
|
battle/SideInBattle.cpp
|
|
|
|
battle/SiegeInfo.cpp
|
2017-07-20 06:08:49 +02:00
|
|
|
battle/Unit.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
|
2013-07-28 17:49:50 +03:00
|
|
|
filesystem/AdapterLoaders.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
filesystem/CArchiveLoader.cpp
|
|
|
|
filesystem/CBinaryReader.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
filesystem/CCompressedStream.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
filesystem/CFileInputStream.cpp
|
2013-04-07 13:48:07 +03:00
|
|
|
filesystem/CFilesystemLoader.cpp
|
2016-02-08 09:17:25 +02:00
|
|
|
filesystem/CMemoryBuffer.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
filesystem/CMemoryStream.cpp
|
2013-07-30 18:02:55 +03:00
|
|
|
filesystem/CZipLoader.cpp
|
2016-02-08 09:17:25 +02:00
|
|
|
filesystem/CZipSaver.cpp
|
2016-01-29 17:08:44 +02:00
|
|
|
filesystem/FileInfo.cpp
|
2016-01-19 12:56:03 +02:00
|
|
|
filesystem/FileStream.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
filesystem/Filesystem.cpp
|
2016-02-08 09:17:25 +02:00
|
|
|
filesystem/MinizipExtensions.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
filesystem/ResourceID.cpp
|
|
|
|
|
|
|
|
logging/CBasicLogConfigurator.cpp
|
|
|
|
logging/CLogger.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
|
2014-06-05 20:26:50 +03:00
|
|
|
mapObjects/CArmedInstance.cpp
|
|
|
|
mapObjects/CBank.cpp
|
2014-06-05 19:52:14 +03:00
|
|
|
mapObjects/CGHeroInstance.cpp
|
|
|
|
mapObjects/CGMarket.cpp
|
|
|
|
mapObjects/CGPandoraBox.cpp
|
|
|
|
mapObjects/CGTownInstance.cpp
|
2014-06-05 14:19:47 +03:00
|
|
|
mapObjects/CObjectClassesHandler.cpp
|
|
|
|
mapObjects/CObjectHandler.cpp
|
2014-06-14 18:42:13 +03:00
|
|
|
mapObjects/CommonConstructors.cpp
|
2014-06-05 19:52:14 +03:00
|
|
|
mapObjects/CQuest.cpp
|
2014-06-05 14:19:47 +03:00
|
|
|
mapObjects/CRewardableConstructor.cpp
|
|
|
|
mapObjects/CRewardableObject.cpp
|
2014-06-22 13:39:40 +03:00
|
|
|
mapObjects/JsonRandom.cpp
|
2014-06-05 19:52:14 +03:00
|
|
|
mapObjects/MiscObjects.cpp
|
2014-06-05 14:19:47 +03:00
|
|
|
mapObjects/ObjectTemplate.cpp
|
|
|
|
|
2013-04-07 13:48:07 +03:00
|
|
|
mapping/CCampaignHandler.cpp
|
2015-05-26 01:02:45 +02:00
|
|
|
mapping/CDrawRoadsOperation.cpp
|
2013-04-07 13:48:07 +03:00
|
|
|
mapping/CMap.cpp
|
|
|
|
mapping/CMapEditManager.cpp
|
|
|
|
mapping/CMapInfo.cpp
|
|
|
|
mapping/CMapService.cpp
|
|
|
|
mapping/MapFormatH3M.cpp
|
2013-12-31 02:09:58 +03:00
|
|
|
mapping/MapFormatJson.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
registerTypes/RegisterTypes.cpp
|
|
|
|
registerTypes/TypesClientPacks1.cpp
|
|
|
|
registerTypes/TypesClientPacks2.cpp
|
|
|
|
registerTypes/TypesMapObjects1.cpp
|
|
|
|
registerTypes/TypesMapObjects2.cpp
|
|
|
|
registerTypes/TypesMapObjects3.cpp
|
2018-01-05 19:21:07 +02:00
|
|
|
registerTypes/TypesLobbyPacks.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
registerTypes/TypesServerPacks.cpp
|
|
|
|
|
2013-04-07 13:48:07 +03:00
|
|
|
rmg/CMapGenerator.cpp
|
2013-08-17 15:46:48 +03:00
|
|
|
rmg/CMapGenOptions.cpp
|
|
|
|
rmg/CRmgTemplate.cpp
|
|
|
|
rmg/CRmgTemplateStorage.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
rmg/CRmgTemplateZone.cpp
|
2013-08-17 15:46:48 +03:00
|
|
|
rmg/CZoneGraphGenerator.cpp
|
|
|
|
rmg/CZonePlacer.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
|
2016-09-10 02:32:40 +02:00
|
|
|
serializer/BinaryDeserializer.cpp
|
|
|
|
serializer/BinarySerializer.cpp
|
|
|
|
serializer/CLoadIntegrityValidator.cpp
|
|
|
|
serializer/CMemorySerializer.cpp
|
|
|
|
serializer/Connection.cpp
|
|
|
|
serializer/CSerializer.cpp
|
|
|
|
serializer/CTypeList.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
serializer/JsonDeserializer.cpp
|
|
|
|
serializer/JsonSerializeFormat.cpp
|
|
|
|
serializer/JsonSerializer.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
|
2018-03-02 12:22:51 +02:00
|
|
|
spells/AbilityCaster.cpp
|
2016-10-23 16:56:53 +02:00
|
|
|
spells/AdventureSpellMechanics.cpp
|
|
|
|
spells/BattleSpellMechanics.cpp
|
2018-03-02 12:22:51 +02:00
|
|
|
spells/BonusCaster.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
spells/CSpellHandler.cpp
|
|
|
|
spells/ISpellMechanics.cpp
|
2017-07-20 06:08:49 +02:00
|
|
|
spells/Problem.cpp
|
2018-03-02 12:22:51 +02:00
|
|
|
spells/ProxyCaster.cpp
|
2017-07-20 06:08:49 +02:00
|
|
|
spells/TargetCondition.cpp
|
2016-10-23 16:56:53 +02:00
|
|
|
spells/ViewSpellInt.cpp
|
2015-02-02 10:25:26 +02:00
|
|
|
|
2017-07-20 06:08:49 +02:00
|
|
|
spells/effects/Catapult.cpp
|
|
|
|
spells/effects/Clone.cpp
|
|
|
|
spells/effects/Damage.cpp
|
|
|
|
spells/effects/Dispel.cpp
|
|
|
|
spells/effects/Effect.cpp
|
|
|
|
spells/effects/Effects.cpp
|
|
|
|
spells/effects/Heal.cpp
|
|
|
|
spells/effects/LocationEffect.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
|
|
|
|
|
2018-04-03 03:37:09 +02:00
|
|
|
vstd/StringUtils.cpp
|
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
CAndroidVMHelper.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
CArtHandler.cpp
|
2013-03-06 21:49:56 +03:00
|
|
|
CBonusTypeHandler.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
CBuildingHandler.cpp
|
|
|
|
CConfigHandler.cpp
|
|
|
|
CConsoleHandler.cpp
|
|
|
|
CCreatureHandler.cpp
|
|
|
|
CCreatureSet.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
CGameInfoCallback.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
CGameInterface.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
CGameState.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
CGeneralTextHandler.cpp
|
|
|
|
CHeroHandler.cpp
|
|
|
|
CModHandler.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
CPathfinder.cpp
|
2014-04-10 20:11:09 +03:00
|
|
|
CRandomGenerator.cpp
|
2017-08-30 09:19:54 +02:00
|
|
|
CSkillHandler.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
CStack.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
CThreadHelper.cpp
|
|
|
|
CTownHandler.cpp
|
2013-02-11 22:27:37 +03:00
|
|
|
GameConstants.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
HeroBonus.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
IGameCallback.cpp
|
|
|
|
IHandlerBase.cpp
|
2013-10-26 22:33:34 +03:00
|
|
|
JsonDetail.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
JsonNode.cpp
|
2013-12-02 14:58:02 +03:00
|
|
|
LogicalExpression.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
NetPacksLib.cpp
|
2018-01-05 19:21:07 +02:00
|
|
|
StartInfo.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
ResourceSet.cpp
|
2013-03-02 21:41:25 +03:00
|
|
|
VCMIDirs.cpp
|
2017-06-29 01:03:37 +02:00
|
|
|
VCMI_Lib.cpp
|
2017-07-04 21:07:24 +02:00
|
|
|
|
|
|
|
${VCMILIB_ADDITIONAL_SOURCES}
|
2013-01-06 22:30:12 +03:00
|
|
|
)
|
|
|
|
|
2018-02-09 18:45:50 +02:00
|
|
|
# Version.cpp is a generated file
|
|
|
|
set_source_files_properties(${CMAKE_BINARY_DIR}/Version.cpp
|
|
|
|
PROPERTIES GENERATED TRUE
|
|
|
|
)
|
|
|
|
|
2013-01-06 22:30:12 +03:00
|
|
|
set(lib_HEADERS
|
2018-05-25 21:08:14 +02:00
|
|
|
../include/vstd/CLoggerBase.h
|
|
|
|
../include/vstd/ContainerUtils.h
|
|
|
|
../include/vstd/RNG.h
|
|
|
|
../include/vstd/StringUtils.h
|
2017-06-29 01:03:37 +02:00
|
|
|
StdInc.h
|
2013-04-09 17:31:36 +03:00
|
|
|
../Global.h
|
2013-11-30 13:08:38 +03:00
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
battle/AccessibilityInfo.h
|
|
|
|
battle/BattleAction.h
|
|
|
|
battle/BattleAttackInfo.h
|
|
|
|
battle/BattleHex.h
|
|
|
|
battle/BattleInfo.h
|
2017-07-20 06:08:49 +02:00
|
|
|
battle/BattleProxy.h
|
2017-06-29 01:03:37 +02:00
|
|
|
battle/CBattleInfoCallback.h
|
|
|
|
battle/CBattleInfoEssentials.h
|
|
|
|
battle/CCallbackBase.h
|
|
|
|
battle/CObstacleInstance.h
|
|
|
|
battle/CPlayerBattleCallback.h
|
2017-07-20 06:08:49 +02:00
|
|
|
battle/CUnitState.h
|
|
|
|
battle/Destination.h
|
|
|
|
battle/IBattleState.h
|
|
|
|
battle/IUnitInfo.h
|
2017-06-29 01:03:37 +02:00
|
|
|
battle/ReachabilityInfo.h
|
|
|
|
battle/SideInBattle.h
|
|
|
|
battle/SiegeInfo.h
|
2017-07-20 06:08:49 +02:00
|
|
|
battle/Unit.h
|
2017-06-29 01:03:37 +02:00
|
|
|
|
|
|
|
filesystem/AdapterLoaders.h
|
|
|
|
filesystem/CArchiveLoader.h
|
|
|
|
filesystem/CBinaryReader.h
|
|
|
|
filesystem/CCompressedStream.h
|
|
|
|
filesystem/CFileInputStream.h
|
|
|
|
filesystem/CFilesystemLoader.h
|
|
|
|
filesystem/CInputOutputStream.h
|
2013-04-07 13:48:07 +03:00
|
|
|
filesystem/CInputStream.h
|
2017-06-29 01:03:37 +02:00
|
|
|
filesystem/CMemoryBuffer.h
|
|
|
|
filesystem/CMemoryStream.h
|
2017-03-10 18:39:11 +02:00
|
|
|
filesystem/COutputStream.h
|
2017-06-29 01:03:37 +02:00
|
|
|
filesystem/CStream.h
|
|
|
|
filesystem/CZipLoader.h
|
|
|
|
filesystem/CZipSaver.h
|
|
|
|
filesystem/FileInfo.h
|
|
|
|
filesystem/FileStream.h
|
|
|
|
filesystem/Filesystem.h
|
|
|
|
filesystem/ISimpleResourceLoader.h
|
|
|
|
filesystem/MinizipExtensions.h
|
|
|
|
filesystem/ResourceID.h
|
2017-03-10 18:39:11 +02:00
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
logging/CBasicLogConfigurator.h
|
|
|
|
logging/CLogger.h
|
|
|
|
|
|
|
|
mapObjects/CArmedInstance.h
|
|
|
|
mapObjects/CBank.h
|
|
|
|
mapObjects/CGHeroInstance.h
|
|
|
|
mapObjects/CGMarket.h
|
|
|
|
mapObjects/CGPandoraBox.h
|
|
|
|
mapObjects/CGTownInstance.h
|
|
|
|
mapObjects/CObjectClassesHandler.h
|
|
|
|
mapObjects/CObjectHandler.h
|
|
|
|
mapObjects/CommonConstructors.h
|
|
|
|
mapObjects/CQuest.h
|
|
|
|
mapObjects/CRewardableConstructor.h
|
|
|
|
mapObjects/CRewardableObject.h
|
|
|
|
mapObjects/JsonRandom.h
|
|
|
|
mapObjects/MapObjects.h
|
|
|
|
mapObjects/MiscObjects.h
|
|
|
|
mapObjects/ObjectTemplate.h
|
|
|
|
|
|
|
|
mapping/CCampaignHandler.h
|
|
|
|
mapping/CDrawRoadsOperation.h
|
|
|
|
mapping/CMapDefines.h
|
|
|
|
mapping/CMapEditManager.h
|
|
|
|
mapping/CMap.h
|
|
|
|
mapping/CMapInfo.h
|
|
|
|
mapping/CMapService.h
|
|
|
|
mapping/MapFormatH3M.h
|
|
|
|
mapping/MapFormatJson.h
|
|
|
|
|
|
|
|
registerTypes/RegisterTypes.h
|
|
|
|
|
|
|
|
rmg/CMapGenerator.h
|
|
|
|
rmg/CMapGenOptions.h
|
|
|
|
rmg/CRmgTemplate.h
|
|
|
|
rmg/CRmgTemplateStorage.h
|
|
|
|
rmg/CRmgTemplateZone.h
|
|
|
|
rmg/CZoneGraphGenerator.h
|
|
|
|
rmg/CZonePlacer.h
|
2017-03-10 18:39:11 +02:00
|
|
|
rmg/float3.h
|
|
|
|
|
2017-06-29 01:03:37 +02:00
|
|
|
serializer/BinaryDeserializer.h
|
|
|
|
serializer/BinarySerializer.h
|
|
|
|
serializer/CLoadIntegrityValidator.h
|
|
|
|
serializer/CMemorySerializer.h
|
|
|
|
serializer/Connection.h
|
|
|
|
serializer/CSerializer.h
|
|
|
|
serializer/CTypeList.h
|
|
|
|
serializer/JsonDeserializer.h
|
|
|
|
serializer/JsonSerializeFormat.h
|
|
|
|
serializer/JsonSerializer.h
|
2018-08-13 23:48:00 +02:00
|
|
|
serializer/Cast.h
|
2017-06-29 01:03:37 +02:00
|
|
|
|
2018-03-02 12:22:51 +02:00
|
|
|
spells/AbilityCaster.h
|
2017-06-29 01:03:37 +02:00
|
|
|
spells/AdventureSpellMechanics.h
|
|
|
|
spells/BattleSpellMechanics.h
|
2018-03-02 12:22:51 +02:00
|
|
|
spells/BonusCaster.h
|
2017-06-29 01:03:37 +02:00
|
|
|
spells/CSpellHandler.h
|
|
|
|
spells/ISpellMechanics.h
|
2017-03-10 18:39:11 +02:00
|
|
|
spells/Magic.h
|
2017-07-20 06:08:49 +02:00
|
|
|
spells/Problem.h
|
2018-03-02 12:22:51 +02:00
|
|
|
spells/ProxyCaster.h
|
2017-07-20 06:08:49 +02:00
|
|
|
spells/TargetCondition.h
|
2017-06-29 01:03:37 +02:00
|
|
|
spells/ViewSpellInt.h
|
2013-11-30 13:08:38 +03:00
|
|
|
|
2017-07-20 06:08:49 +02:00
|
|
|
spells/effects/Catapult.h
|
|
|
|
spells/effects/Clone.h
|
|
|
|
spells/effects/Damage.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
|
2013-01-06 22:30:12 +03:00
|
|
|
AI_Base.h
|
2017-06-29 01:03:37 +02:00
|
|
|
CAndroidVMHelper.h
|
|
|
|
CArtHandler.h
|
|
|
|
CBonusTypeHandler.h
|
|
|
|
CBuildingHandler.h
|
|
|
|
CConfigHandler.h
|
|
|
|
CConsoleHandler.h
|
|
|
|
CCreatureHandler.h
|
|
|
|
CCreatureSet.h
|
|
|
|
CGameInfoCallback.h
|
|
|
|
CGameInterface.h
|
|
|
|
CGameStateFwd.h
|
|
|
|
CGameState.h
|
|
|
|
CGeneralTextHandler.h
|
|
|
|
CHeroHandler.h
|
|
|
|
CModHandler.h
|
2013-01-06 22:30:12 +03:00
|
|
|
CondSh.h
|
|
|
|
ConstTransitivePtr.h
|
2017-06-29 01:03:37 +02:00
|
|
|
CPathfinder.h
|
|
|
|
CPlayerState.h
|
|
|
|
CRandomGenerator.h
|
2013-01-06 22:30:12 +03:00
|
|
|
CScriptingModule.h
|
2017-08-30 09:19:54 +02:00
|
|
|
CSkillHandler.h
|
2017-06-29 01:03:37 +02:00
|
|
|
CSoundBase.h
|
|
|
|
CStack.h
|
2013-01-06 22:30:12 +03:00
|
|
|
CStopWatch.h
|
2017-06-29 01:03:37 +02:00
|
|
|
CThreadHelper.h
|
|
|
|
CTownHandler.h
|
2013-11-30 13:08:38 +03:00
|
|
|
FunctionList.h
|
2013-01-06 22:30:12 +03:00
|
|
|
GameConstants.h
|
2017-06-29 01:03:37 +02:00
|
|
|
HeroBonus.h
|
2017-03-10 18:39:11 +02:00
|
|
|
IBonusTypeHandler.h
|
2017-06-29 01:03:37 +02:00
|
|
|
IGameCallback.h
|
2013-01-06 22:30:12 +03:00
|
|
|
IGameEventsReceiver.h
|
2017-06-29 01:03:37 +02:00
|
|
|
IHandlerBase.h
|
2013-01-06 22:30:12 +03:00
|
|
|
int3.h
|
|
|
|
Interprocess.h
|
2017-06-29 01:03:37 +02:00
|
|
|
JsonDetail.h
|
|
|
|
JsonNode.h
|
|
|
|
LogicalExpression.h
|
2014-01-30 21:56:31 +03:00
|
|
|
NetPacksBase.h
|
2017-06-29 01:03:37 +02:00
|
|
|
NetPacks.h
|
2018-01-05 19:21:07 +02:00
|
|
|
NetPacksLobby.h
|
2017-06-29 01:03:37 +02:00
|
|
|
ResourceSet.h
|
2017-03-10 18:39:11 +02:00
|
|
|
ScopeGuard.h
|
2013-01-06 22:30:12 +03:00
|
|
|
StartInfo.h
|
2017-06-29 01:03:37 +02:00
|
|
|
StringConstants.h
|
2013-01-06 22:30:12 +03:00
|
|
|
UnlockGuard.h
|
|
|
|
VCMIDirs.h
|
|
|
|
vcmi_endian.h
|
2017-06-29 01:03:37 +02:00
|
|
|
VCMI_Lib.h
|
2013-01-06 22:30:12 +03:00
|
|
|
)
|
|
|
|
|
2017-08-15 20:17:00 +02:00
|
|
|
assign_source_group(${lib_SRCS} ${lib_HEADERS})
|
|
|
|
|
2013-01-06 22:30:12 +03:00
|
|
|
add_library(vcmi SHARED ${lib_SRCS} ${lib_HEADERS})
|
2014-07-08 01:50:44 +03:00
|
|
|
set_target_properties(vcmi PROPERTIES COMPILE_DEFINITIONS "VCMI_DLL=1")
|
2017-08-15 20:18:02 +02:00
|
|
|
target_link_libraries(vcmi ${MINIZIP_LIBRARIES} ${Boost_LIBRARIES} ${SDL2_LIBRARY} ${ZLIB_LIBRARIES} ${SYSTEM_LIBS})
|
2013-01-06 22:30:12 +03:00
|
|
|
|
2014-07-11 01:09:00 +03:00
|
|
|
if(WIN32)
|
2017-08-15 20:17:00 +02:00
|
|
|
set_target_properties(vcmi
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME "VCMI_lib"
|
|
|
|
PROJECT_LABEL "VCMI_lib"
|
|
|
|
)
|
2014-07-11 01:09:00 +03:00
|
|
|
endif()
|
|
|
|
|
2017-08-15 20:17:00 +02:00
|
|
|
if(ANDROID)
|
2017-05-25 19:57:20 +02:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2017-07-04 22:46:49 +02:00
|
|
|
vcmi_set_output_dir(vcmi "")
|
|
|
|
|
2014-02-05 23:25:36 +03:00
|
|
|
set_target_properties(vcmi PROPERTIES ${PCH_PROPERTIES})
|
|
|
|
cotire(vcmi)
|
2014-02-01 16:37:26 +03:00
|
|
|
|
2017-08-12 20:58:09 +02:00
|
|
|
# We want to deploy assets into build directory for easier debugging without install
|
|
|
|
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
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/config ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/config
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/Mods ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/Mods
|
|
|
|
)
|
|
|
|
|
2018-02-09 18:45:50 +02:00
|
|
|
# Update version before vcmi compiling
|
|
|
|
if(TARGET update_version)
|
|
|
|
add_dependencies(vcmi update_version)
|
|
|
|
endif()
|
|
|
|
|
2017-08-12 20:58:09 +02:00
|
|
|
install(TARGETS vcmi RUNTIME DESTINATION ${LIB_DIR} LIBRARY DESTINATION ${LIB_DIR})
|