metaforce/Runtime/CMakeLists.txt

110 lines
3.7 KiB
CMake
Raw Normal View History

2017-01-15 03:07:01 +00:00
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${BOO_INCLUDE_DIR} ${LIBJPEG_INCLUDE_DIR}
2017-01-08 02:52:49 +00:00
${ZLIB_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/DataSpec ${JBUS_INCLUDE_DIR})
2015-08-18 22:51:54 +00:00
2016-04-24 04:03:30 +00:00
macro(runtime_add_list rel_path a_list)
unset(tmp_list)
foreach(path IN LISTS ${a_list})
list(APPEND tmp_list "${rel_path}/${path}")
endforeach(path)
set(${a_list} "${tmp_list}" PARENT_SCOPE)
endmacro(runtime_add_list)
2015-08-18 22:51:54 +00:00
add_subdirectory(Audio)
add_subdirectory(Character)
add_subdirectory(Graphics)
add_subdirectory(Collision)
add_subdirectory(Camera)
2016-04-16 23:48:29 +00:00
add_subdirectory(World)
2016-11-22 20:43:16 +00:00
add_subdirectory(Weapon)
2016-04-16 23:48:29 +00:00
add_subdirectory(AutoMapper)
2015-08-18 22:51:54 +00:00
add_subdirectory(GuiSys)
add_subdirectory(Input)
add_subdirectory(Particle)
2015-08-23 06:42:29 +00:00
if(WIN32)
list(APPEND PLAT_SRCS CMemoryCardSysWin.cpp)
elseif(APPLE)
2015-09-02 19:10:11 +00:00
list(APPEND PLAT_SRCS CMemoryCardSysOSX.cpp)
2015-08-23 06:42:29 +00:00
else()
list(APPEND PLAT_SRCS CMemoryCardSysNix.cpp)
2015-08-23 06:42:29 +00:00
endif()
2017-01-15 03:07:01 +00:00
add_custom_command(OUTPUT TCastTo.hpp TCastTo.cpp DEPENDS MkCastTo.py
COMMAND python ARGS ${CMAKE_CURRENT_SOURCE_DIR}/MkCastTo.py
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating cast functions")
2016-04-24 04:03:30 +00:00
add_subdirectory(MP1)
add_subdirectory(MP2)
add_subdirectory(MP3)
2015-08-18 22:51:54 +00:00
add_library(RuntimeCommon
RetroTypes.hpp RetroTypes.cpp
2016-04-24 04:03:30 +00:00
${CLIENT_SOURCES}
${MP1_SOURCES}
${AUDIO_SOURCES}
${AUTOMAPPER_SOURCES}
${CAMERA_SOURCES}
${CHARACTER_SOURCES}
${COLLISION_SOURCES}
${GRAPHICS_SOURCES}
${GUISYS_SOURCES}
${INPUT_SOURCES}
${PARTICLE_SOURCES}
${WORLD_SOURCES}
2016-11-22 20:43:16 +00:00
${WEAPON_SOURCES}
2016-07-27 04:19:32 +00:00
ITweak.hpp
2016-09-17 06:40:45 +00:00
IMain.hpp
2016-09-25 01:58:20 +00:00
CMemoryCardSys.hpp CMemoryCardSys.cpp
2016-08-03 23:20:31 +00:00
CScannableObjectInfo.hpp CScannableObjectInfo.cpp
2016-06-23 19:40:09 +00:00
CSaveWorld.hpp CSaveWorld.cpp
2016-04-12 11:37:07 +00:00
CDependencyGroup.hpp CDependencyGroup.cpp
2015-08-18 22:51:54 +00:00
CBasics.hpp CBasicsPC.cpp
2015-08-27 00:23:46 +00:00
CIOWin.hpp
2015-08-18 22:51:54 +00:00
CIOWinManager.hpp CIOWinManager.cpp
CStateManager.hpp CStateManager.cpp
2016-04-17 02:50:45 +00:00
CFluidPlaneManager.hpp CFluidPlaneManager.cpp
2015-08-18 22:51:54 +00:00
CGameState.hpp CGameState.cpp
2016-08-14 21:38:05 +00:00
CScanDisplay.hpp CScanDisplay.cpp
2016-07-24 23:14:58 +00:00
CRelayTracker.hpp CRelayTracker.cpp
2015-08-18 22:51:54 +00:00
CPlayerState.hpp CPlayerState.cpp
CRandom16.hpp CRandom16.cpp
CResFactory.hpp CResFactory.cpp
2015-08-23 06:42:29 +00:00
CResLoader.hpp CResLoader.cpp
2016-03-07 03:12:32 +00:00
CDvdRequest.hpp
CDvdFile.hpp CDvdFile.cpp
CVirtualDvdFile.hpp CVirtualDvdFile.cpp
2015-08-22 01:58:41 +00:00
IObjectStore.hpp
2015-08-18 22:51:54 +00:00
CSimplePool.hpp CSimplePool.cpp
CGameOptions.hpp CGameOptions.cpp
2015-08-20 02:52:07 +00:00
CStaticInterference.hpp
2015-08-18 22:51:54 +00:00
CCRC32.hpp CCRC32.cpp
IFactory.hpp
2016-04-13 06:07:23 +00:00
IObjFactory.hpp
CObjectList.hpp CObjectList.cpp
GameObjectLists.hpp GameObjectLists.cpp
CSortedLists.hpp CSortedLists.cpp
2015-08-20 02:52:07 +00:00
CArchitectureMessage.hpp
CArchitectureQueue.hpp CArchitectureQueue.cpp
2015-08-21 00:06:39 +00:00
IObj.hpp
2015-08-22 01:58:41 +00:00
IVParamObj.hpp
CTimeProvider.hpp CTimeProvider.cpp
2016-09-21 05:41:51 +00:00
CToken.hpp CToken.cpp
2015-08-23 06:42:29 +00:00
CFactoryMgr.hpp CFactoryMgr.cpp
CPakFile.hpp CPakFile.cpp
CStringExtras.hpp
2015-08-23 23:58:07 +00:00
IOStreams.hpp IOStreams.cpp
2015-08-27 00:23:46 +00:00
CMainFlowBase.hpp CMainFlowBase.cpp
CMFGameBase.hpp
CInGameTweakManagerBase.hpp
CPlayMovieBase.hpp
CGameDebug.hpp CGameDebug.cpp
2016-09-08 02:01:29 +00:00
CGameHintInfo.hpp CGameHintInfo.cpp
2015-08-22 01:58:41 +00:00
rstl.hpp rstl.cpp
2016-04-15 03:02:21 +00:00
GameGlobalObjects.hpp GameGlobalObjects.cpp
2017-01-15 03:07:01 +00:00
MkCastTo.py
TCastTo.hpp TCastTo.cpp
2015-08-23 06:42:29 +00:00
GCNTypes.hpp
${PLAT_SRCS})