axmol/cocos/network/CMakeLists.txt

38 lines
462 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 )
2014-05-15 21:26:41 +08:00
set(COCOS_NETWORK_LINK
libcurl_imp
${PLATFORM_LINK}
)
ELSE()
2014-05-15 21:26:41 +08:00
set(COCOS_NETWORK_LINK
2013-11-04 13:10:04 +08:00
curl
2014-01-09 19:49:11 +08:00
${PLATFORM_LINK}
2013-11-04 13:10:04 +08:00
)
ENDIF()