2011-07-24 10:29:16 -04:00
|
|
|
# CMakeLists.txt - enet
|
|
|
|
|
|
|
|
include_directories("include")
|
|
|
|
|
|
|
|
add_definitions(-DHAS_SOCKLEN_T)
|
|
|
|
|
|
|
|
add_library(enet
|
2012-03-06 15:57:35 -05:00
|
|
|
callbacks.c
|
|
|
|
compress.c
|
|
|
|
host.c
|
|
|
|
list.c
|
|
|
|
packet.c
|
|
|
|
peer.c
|
|
|
|
protocol.c
|
|
|
|
unix.c
|
|
|
|
win32.c
|
|
|
|
)
|
2012-03-10 18:16:57 -05:00
|
|
|
|
|
|
|
#if(WIN32)
|
|
|
|
# find_library(WS2_LIBRARY NAMES "ws2_32" PATHS "C:/Windows/System32")
|
|
|
|
# target_link_libraries(enet ${WS2_LIBRARY})
|
|
|
|
#endif()
|