2013-01-06 22:30:12 +03:00
|
|
|
project(libvcmi)
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
include_directories(${CMAKE_HOME_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/lib)
|
|
|
|
include_directories(${Boost_INCLUDE_DIRS} ${SDL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
|
|
|
|
|
|
|
|
set(lib_SRCS
|
2013-07-28 17:49:50 +03:00
|
|
|
filesystem/AdapterLoaders.cpp
|
|
|
|
filesystem/CCompressedStream.cpp
|
2013-04-07 13:48:07 +03:00
|
|
|
filesystem/CFilesystemLoader.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
filesystem/CArchiveLoader.cpp
|
2013-04-07 13:48:07 +03:00
|
|
|
filesystem/CFileInfo.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
filesystem/CMemoryStream.cpp
|
|
|
|
filesystem/CBinaryReader.cpp
|
2013-04-07 13:48:07 +03:00
|
|
|
filesystem/CFileInputStream.cpp
|
2013-07-30 18:02:55 +03:00
|
|
|
filesystem/CZipLoader.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
filesystem/Filesystem.cpp
|
|
|
|
|
2013-04-07 13:30:01 +03:00
|
|
|
logging/CBasicLogConfigurator.cpp
|
2013-04-11 18:58:01 +03:00
|
|
|
logging/CLogger.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
|
2013-04-07 13:48:07 +03:00
|
|
|
mapping/CCampaignHandler.cpp
|
|
|
|
mapping/CMap.cpp
|
|
|
|
mapping/CMapEditManager.cpp
|
|
|
|
mapping/CMapInfo.cpp
|
|
|
|
mapping/CMapService.cpp
|
|
|
|
mapping/MapFormatH3M.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
|
2013-04-07 13:48:07 +03:00
|
|
|
rmg/CMapGenerator.cpp
|
2013-07-28 17:49:50 +03:00
|
|
|
|
2013-01-06 22:30:12 +03:00
|
|
|
BattleAction.cpp
|
|
|
|
BattleHex.cpp
|
|
|
|
BattleState.cpp
|
|
|
|
CArtHandler.cpp
|
|
|
|
CBattleCallback.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
|
|
|
|
CDefObjInfoHandler.cpp
|
|
|
|
CGameInterface.cpp
|
|
|
|
CGameState.cpp
|
|
|
|
CGeneralTextHandler.cpp
|
|
|
|
CHeroHandler.cpp
|
|
|
|
CModHandler.cpp
|
|
|
|
CObjectHandler.cpp
|
|
|
|
CObstacleInstance.cpp
|
|
|
|
Connection.cpp
|
|
|
|
CSpellHandler.cpp
|
|
|
|
CThreadHelper.cpp
|
|
|
|
CTownHandler.cpp
|
2013-02-11 22:27:37 +03:00
|
|
|
GameConstants.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
HeroBonus.cpp
|
|
|
|
IGameCallback.cpp
|
|
|
|
JsonNode.cpp
|
|
|
|
NetPacksLib.cpp
|
|
|
|
ResourceSet.cpp
|
2013-02-23 15:22:23 +03:00
|
|
|
RegisterTypes.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
VCMI_Lib.cpp
|
2013-03-02 21:41:25 +03:00
|
|
|
VCMIDirs.cpp
|
2013-01-06 22:30:12 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
set(lib_HEADERS
|
2013-04-09 17:31:36 +03:00
|
|
|
../Global.h
|
2013-04-07 13:48:07 +03:00
|
|
|
filesystem/CInputStream.h
|
|
|
|
filesystem/ISimpleResourceLoader.h
|
2013-01-06 22:30:12 +03:00
|
|
|
AI_Base.h
|
|
|
|
CondSh.h
|
|
|
|
ConstTransitivePtr.h
|
2013-03-06 21:49:56 +03:00
|
|
|
CBonusTypeHandler.h
|
2013-01-06 22:30:12 +03:00
|
|
|
CRandomGenerator.h
|
|
|
|
CScriptingModule.h
|
|
|
|
CStopWatch.h
|
|
|
|
GameConstants.h
|
|
|
|
StringConstants.h
|
|
|
|
IGameEventsReceiver.h
|
2013-04-21 15:49:26 +03:00
|
|
|
IHandlerBase.h
|
2013-01-06 22:30:12 +03:00
|
|
|
int3.h
|
|
|
|
Interprocess.h
|
|
|
|
NetPacks.h
|
|
|
|
RegisterTypes.h
|
|
|
|
StartInfo.h
|
|
|
|
UnlockGuard.h
|
|
|
|
VCMIDirs.h
|
|
|
|
vcmi_endian.h
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(vcmi SHARED ${lib_SRCS} ${lib_HEADERS})
|
|
|
|
set_target_properties(vcmi PROPERTIES XCODE_ATTRIBUTE_LD_DYLIB_INSTALL_NAME "@executable_path/libvcmi.dylib")
|
2013-07-30 18:02:55 +03:00
|
|
|
target_link_libraries(vcmi minizip ${Boost_LIBRARIES} ${SDL_LIBRARY} ${ZLIB_LIBRARIES})
|
2013-01-06 22:30:12 +03:00
|
|
|
|
|
|
|
if (NOT APPLE) # Already inside vcmiclient bundle
|
|
|
|
install(TARGETS vcmi DESTINATION ${LIB_DIR})
|
|
|
|
endif()
|