mirror of https://github.com/axmolengine/axmol.git
38 lines
490 B
CMake
38 lines
490 B
CMake
if(WIN32)
|
|
set(PLATFORM_SRC
|
|
network/WebSocket.cpp
|
|
)
|
|
|
|
set(PLATFORM_LINK
|
|
websockets
|
|
)
|
|
elseif(NOT APPLE)
|
|
set(PLATFORM_SRC
|
|
network/WebSocket.cpp
|
|
)
|
|
|
|
set(PLATFORM_LINK
|
|
websockets
|
|
ssl
|
|
crypto
|
|
)
|
|
endif()
|
|
|
|
set(COCOS_NETWORK_SRC
|
|
network/HttpClient.cpp
|
|
network/SocketIO.cpp
|
|
${PLATFORM_SRC}
|
|
)
|
|
|
|
IF (WIN32 AND NOT MINGW)
|
|
set(COCOS_NETWORK_LINK
|
|
libcurl_imp
|
|
${PLATFORM_LINK}
|
|
)
|
|
ELSE()
|
|
set(COCOS_NETWORK_LINK
|
|
curl
|
|
${PLATFORM_LINK}
|
|
)
|
|
ENDIF()
|