server mode no window

This commit is contained in:
yangchao 2022-05-10 14:24:21 +08:00
parent ea41ab8f47
commit 857e7daa82
2 changed files with 7 additions and 4 deletions

View File

@ -253,14 +253,15 @@ list(APPEND CC_EXTERNAL_LIBS
OpenAL32 OpenAL32
sqlite3 sqlite3
websockets websockets
SDL2
SDL2Main
tcmalloc tcmalloc
${glslang_libs_name} ${glslang_libs_name}
${tbb_libs_name} ${tbb_libs_name}
${PhysXSDK} ${PhysXSDK}
) )
if(NOT USE_SERVER_MODE)
list(APPEND CC_EXTERNAL_LIBS SDL2 SDL2Main)
endif()
set(ZLIB zlib) set(ZLIB zlib)
if(NOT USE_MODULES) if(NOT USE_MODULES)

View File

@ -253,14 +253,16 @@ list(APPEND CC_EXTERNAL_LIBS
sqlite3 sqlite3
zlib zlib
websockets websockets
SDL2
SDL2Main
tcmalloc tcmalloc
${glslang_libs_name} ${glslang_libs_name}
${tbb_libs_name} ${tbb_libs_name}
${PhysXSDK} ${PhysXSDK}
) )
if(NOT USE_SERVER_MODE)
list(APPEND CC_EXTERNAL_LIBS SDL2 SDL2Main)
endif()
set(ZLIB zlib) set(ZLIB zlib)
if(NOT USE_MODULES) if(NOT USE_MODULES)
list(APPEND CC_EXTERNAL_LIBS ${ZLIB} list(APPEND CC_EXTERNAL_LIBS ${ZLIB}