axmol/cocos/network/CMakeLists.txt

38 lines
490 B
CMake
Raw Normal View History

2014-01-09 19:49:11 +08:00
if(WIN32)
set(PLATFORM_SRC
network/WebSocket.cpp
2014-01-09 19:49:11 +08:00
)
2014-02-11 22:21:15 +08:00
set(PLATFORM_LINK
websockets
)
elseif(NOT APPLE)
set(PLATFORM_SRC
network/WebSocket.cpp
2014-02-11 22:21:15 +08:00
)
2014-01-09 19:49:11 +08:00
set(PLATFORM_LINK
websockets
2014-02-11 22:21:15 +08:00
ssl
crypto
2014-01-09 19:49:11 +08:00
)
endif()
set(COCOS_NETWORK_SRC
network/HttpClient.cpp
network/SocketIO.cpp
2014-01-09 19:49:11 +08:00
${PLATFORM_SRC}
2013-11-02 18:07:34 +08:00
)
IF (WIN32 AND NOT MINGW)
set(COCOS_NETWORK_LINK
libcurl_imp
${PLATFORM_LINK}
)
ELSE()
set(COCOS_NETWORK_LINK
curl
${PLATFORM_LINK}
)
ENDIF()