mirror of https://github.com/axmolengine/axmol.git
29 lines
384 B
CMake
29 lines
384 B
CMake
|
|
if(WINDOWS)
|
|
set(PLATFORM_LINK websockets)
|
|
elseif(LINUX)
|
|
set(PLATFORM_LINK websockets ssl crypto)
|
|
else()
|
|
set(PLATFORM_LINK websockets)
|
|
endif()
|
|
|
|
set(COCOS_NETWORK_SRC
|
|
|
|
HttpClient.cpp
|
|
SocketIO.cpp
|
|
WebSocket.cpp
|
|
|
|
)
|
|
|
|
if(MSVC)
|
|
set(COCOS_NETWORK_LINK
|
|
libcurl_imp
|
|
${PLATFORM_LINK}
|
|
)
|
|
else()
|
|
set(COCOS_NETWORK_LINK
|
|
curl
|
|
${PLATFORM_LINK}
|
|
)
|
|
endif()
|