1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-26 08:41:13 +02:00
vcmi/lib/CMakeLists.txt

76 lines
1.9 KiB
CMake
Raw Normal View History

project(libvcmi)
2012-07-01 17:27:41 +03:00
cmake_minimum_required(VERSION 2.6)
include_directories(${CMAKE_HOME_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/lib)
2012-07-01 17:27:41 +03:00
include_directories(${SDL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
set(lib_SRCS
Filesystem/CBinaryReader.cpp
Filesystem/CFilesystemLoader.cpp
Filesystem/CMemoryStream.cpp
Filesystem/CFileInfo.cpp
Filesystem/CLodArchiveLoader.cpp
Filesystem/CResourceLoader.cpp
Filesystem/CFileInputStream.cpp
Filesystem/CCompressedStream.cpp
Map/CCampaignHandler.cpp
Map/CMap.cpp
Map/CMapInfo.cpp
Map/CMapService.cpp
RMG/CMapGenOptions.cpp
2012-07-01 17:27:41 +03:00
BattleAction.cpp
BattleHex.cpp
BattleState.cpp
CArtHandler.cpp
CBattleCallback.cpp
2012-07-01 17:27:41 +03:00
CBuildingHandler.cpp
CConfigHandler.cpp
2012-07-01 17:27:41 +03:00
CConsoleHandler.cpp
CCreatureHandler.cpp
CCreatureSet.cpp
CDefObjInfoHandler.cpp
CGameInterface.cpp
CGameState.cpp
CGeneralTextHandler.cpp
CHeroHandler.cpp
CLogger.cpp
CModHandler.cpp
2012-07-01 17:27:41 +03:00
CObjectHandler.cpp
CObstacleInstance.cpp
Connection.cpp
CSpellHandler.cpp
CThreadHelper.cpp
CTownHandler.cpp
HeroBonus.cpp
IGameCallback.cpp
JsonNode.cpp
NetPacksLib.cpp
ResourceSet.cpp
VCMI_Lib.cpp
)
set(lib_HEADERS
Filesystem/CInputStream.h
Filesystem/ISimpleResourceLoader.h
AI_Base.h
CondSh.h
ConstTransitivePtr.h
CScriptingModule.h
CStopWatch.h
GameConstants.h
IGameEventsReceiver.h
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})
target_link_libraries(vcmi ${Boost_LIBRARIES} ${SDL_LIBRARY} ${ZLIB_LIBRARIES})
install(TARGETS vcmi DESTINATION ${LIB_DIR})