|
|
|
@ -32,6 +32,11 @@ add_component_dir (settings
|
|
|
|
|
settings parser
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Start of tes3mp change
|
|
|
|
|
#
|
|
|
|
|
# Don't include certain components in server-only builds
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
add_component_dir (bsa
|
|
|
|
|
bsa_file compressedbsafile memorystream
|
|
|
|
|
)
|
|
|
|
@ -40,7 +45,6 @@ add_component_dir (vfs
|
|
|
|
|
manager archive bsaarchive filesystemarchive registerarchives
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
IF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
add_component_dir (resource
|
|
|
|
|
scenemanager keyframemanager imagemanager bulletshapemanager bulletshape niffilemanager objectcache multiobjectcache resourcesystem
|
|
|
|
|
resourcemanager stats animation
|
|
|
|
@ -67,7 +71,11 @@ add_component_dir (nifosg
|
|
|
|
|
add_component_dir (nifbullet
|
|
|
|
|
bulletnifloader
|
|
|
|
|
)
|
|
|
|
|
ENDIF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# Start of tes3mp change
|
|
|
|
|
#
|
|
|
|
|
# Don't include certain components in server-only builds
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
|
|
|
|
|
add_component_dir (to_utf8
|
|
|
|
|
to_utf8
|
|
|
|
@ -84,9 +92,19 @@ add_component_dir (esm
|
|
|
|
|
aisequence magiceffects util custommarkerstate stolenitems transport animationstate controlsstate mappings
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Start of tes3mp change
|
|
|
|
|
#
|
|
|
|
|
# Don't include certain components in server-only builds
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
add_component_dir (esmterrain
|
|
|
|
|
storage
|
|
|
|
|
)
|
|
|
|
|
# Start of tes3mp change
|
|
|
|
|
#
|
|
|
|
|
# Don't include certain components in server-only builds
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
|
|
|
|
|
add_component_dir (misc
|
|
|
|
|
constants utf8stream stringops resourcehelpers rng messageformatparser weakcache thread
|
|
|
|
@ -100,6 +118,7 @@ IF(NOT WIN32 AND NOT APPLE)
|
|
|
|
|
add_definitions(-DGLOBAL_DATA_PATH="${GLOBAL_DATA_PATH}")
|
|
|
|
|
add_definitions(-DGLOBAL_CONFIG_PATH="${GLOBAL_CONFIG_PATH}")
|
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
add_component_dir (files
|
|
|
|
|
linuxpath androidpath windowspath macospath fixedpath multidircollection collections configurationmanager escape
|
|
|
|
|
lowlevelfile constrainedfilestream memorystream
|
|
|
|
@ -121,6 +140,11 @@ add_component_dir (translation
|
|
|
|
|
translation
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Start of tes3mp addition
|
|
|
|
|
#
|
|
|
|
|
# Don't include certain components in server-only builds
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
add_component_dir (terrain
|
|
|
|
|
storage world buffercache defs terraingrid material terraindrawable texturemanager chunkmanager compositemaprenderer quadtreeworld quadtreenode viewdata cellborder
|
|
|
|
|
)
|
|
|
|
@ -129,7 +153,6 @@ add_component_dir (loadinglistener
|
|
|
|
|
loadinglistener
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
IF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
add_component_dir (myguiplatform
|
|
|
|
|
myguirendermanager myguidatamanager myguiplatform myguitexture myguiloglistener additivelayer scalinglayer
|
|
|
|
|
)
|
|
|
|
@ -145,7 +168,11 @@ add_component_dir (fontloader
|
|
|
|
|
add_component_dir (sdlutil
|
|
|
|
|
gl4es_init sdlgraphicswindow imagetosurface sdlinputwrapper sdlvideowrapper events sdlcursormanager
|
|
|
|
|
)
|
|
|
|
|
ENDIF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# Start of tes3mp change
|
|
|
|
|
#
|
|
|
|
|
# Don't include certain components in server-only builds
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
|
|
|
|
|
add_component_dir (version
|
|
|
|
|
version
|
|
|
|
@ -228,7 +255,7 @@ add_component_dir (fallback
|
|
|
|
|
#
|
|
|
|
|
# Don't require the crashcatcher when building on platforms other than Windows or when building only the server,
|
|
|
|
|
# as it causes compilation problems
|
|
|
|
|
if (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
if(WIN32)
|
|
|
|
|
add_component_dir (crashcatcher
|
|
|
|
|
windows_crashcatcher
|
|
|
|
@ -236,13 +263,13 @@ if (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
windows_crashshm
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change (major)
|
|
|
|
|
|
|
|
|
|
# Start of tes3mp change (major)
|
|
|
|
|
#
|
|
|
|
|
# Don't require the DetourNavigator when building the server
|
|
|
|
|
if (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
add_component_dir(detournavigator
|
|
|
|
|
debug
|
|
|
|
|
makenavmesh
|
|
|
|
@ -265,7 +292,7 @@ if (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
oscillatingrecastmeshobject
|
|
|
|
|
offmeshconnectionsmanager
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change (major)
|
|
|
|
|
|
|
|
|
|
set (ESM_UI ${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
|
|
|
@ -274,7 +301,8 @@ set (ESM_UI ${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
|
|
|
|
# Start of tes3mp change (major)
|
|
|
|
|
#
|
|
|
|
|
# Don't require Qt when building the server
|
|
|
|
|
if (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
if (USE_QT)
|
|
|
|
|
add_component_qt_dir (contentselector
|
|
|
|
|
model/modelitem model/esmfile
|
|
|
|
@ -299,8 +327,11 @@ if (USE_QT)
|
|
|
|
|
QT5_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
|
|
|
|
QT5_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
|
|
|
|
|
endif()
|
|
|
|
|
endif(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change (major)
|
|
|
|
|
# Start of tes3mp change (major)
|
|
|
|
|
#
|
|
|
|
|
# Don't require Qt when building the server
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
|
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
|
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
|
|
|
|
@ -314,8 +345,8 @@ add_library(components STATIC ${COMPONENT_FILES} ${MOC_SRCS} ${ESM_UI_HDR})
|
|
|
|
|
|
|
|
|
|
# Start of tes3mp change (major)
|
|
|
|
|
#
|
|
|
|
|
# Don't require OSG when building the server
|
|
|
|
|
if (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# Don't require graphics related libs when building the server
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
target_link_libraries(components
|
|
|
|
|
# CMake's built-in OSG finder does not use pkgconfig, so we have to
|
|
|
|
|
# manually ensure the order is correct for inter-library dependencies.
|
|
|
|
@ -332,32 +363,33 @@ target_link_libraries(components
|
|
|
|
|
${OSG_LIBRARIES}
|
|
|
|
|
${OPENTHREADS_LIBRARIES}
|
|
|
|
|
|
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
|
|
|
${Boost_IOSTREAMS_LIBRARY}
|
|
|
|
|
|
|
|
|
|
${SDL2_LIBRARIES}
|
|
|
|
|
${OPENGL_gl_LIBRARY}
|
|
|
|
|
${MyGUI_LIBRARIES}
|
|
|
|
|
LZ4::LZ4
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
target_link_libraries(components
|
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
|
|
|
${Boost_IOSTREAMS_LIBRARY}
|
|
|
|
|
)
|
|
|
|
|
# End of tes3mp change (major)
|
|
|
|
|
|
|
|
|
|
# Start of tes3mp change (major)
|
|
|
|
|
#
|
|
|
|
|
# Don't require RecastNavigation, Base64 or Bullet when building the server
|
|
|
|
|
if (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# Don't require RecastNavigation nor Bullet when building the server
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
target_link_libraries(components
|
|
|
|
|
RecastNavigation::DebugUtils
|
|
|
|
|
RecastNavigation::Detour
|
|
|
|
|
RecastNavigation::Recast
|
|
|
|
|
|
|
|
|
|
Base64
|
|
|
|
|
${BULLET_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
endif ()
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
target_link_libraries(components Base64)
|
|
|
|
|
# End of tes3mp change (major)
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
@ -369,12 +401,16 @@ endif()
|
|
|
|
|
# Start of tes3mp change (major)
|
|
|
|
|
#
|
|
|
|
|
# Don't require Qt when building the server
|
|
|
|
|
IF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
if (USE_QT)
|
|
|
|
|
if (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
target_link_libraries(components Qt5::Widgets Qt5::Core)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
# End of tes3mp change (major)
|
|
|
|
|
# Start of tes3mp change (major)
|
|
|
|
|
#
|
|
|
|
|
# Don't require Qt when building the server
|
|
|
|
|
ENDIF (BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
# End of tes3mp change
|
|
|
|
|
|
|
|
|
|
if (GIT_CHECKOUT)
|
|
|
|
|
add_dependencies (components git-version)
|
|
|
|
|