axmol/cocos/network/CMakeLists.txt

14 lines
328 B
CMake
Raw Normal View History

2014-08-06 22:43:19 +08:00
if(WINDOWS)
set(PLATFORM_LINK websockets)
elseif(LINUX)
set(PLATFORM_LINK websockets ssl crypto)
2014-01-09 19:49:11 +08:00
endif()
2014-08-06 22:43:19 +08:00
set(COCOS_NETWORK_SRC network/HttpClient.cpp network/SocketIO.cpp network/WebSocket.cpp)
2013-11-02 18:07:34 +08:00
2014-08-06 22:43:19 +08:00
if(MSVC)
set(COCOS_NETWORK_LINK libcurl_imp ${PLATFORM_LINK})
else()
set(COCOS_NETWORK_LINK curl ${PLATFORM_LINK} )
endif()