Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 16, 2007, 1:34:51 AM (17 years ago)
Author:
landauf
Message:

windows library include (for enet)

Location:
code/branches/FICN/src/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/CMakeLists.txt

    r482 r538  
    99  dummyclient3.cc
    1010)
     11
    1112SET( CHATSERVER_SRC_FILES
    1213  ConnectionManager.cc
     
    1718  dummyserver3.cc
    1819)
    19 
    20 
    2120
    2221SET( NETWORK_SRC_FILES
     
    3635
    3736ADD_LIBRARY(network SHARED ${NETWORK_SRC_FILES})
    38 TARGET_LINK_LIBRARIES(network ${ENet_LIBRARY} ${Boost_thread_LIBRARIES})
     37TARGET_LINK_LIBRARIES(network ${Zlib_LIBRARY} ${ENet_LIBRARY} ${Boost_thread_LIBRARIES})
    3938
    4039ADD_EXECUTABLE(chatserver ${CHATSERVER_SRC_FILES})
     
    4443  core
    4544  #objects
     45  ${ENet_LIBRARY}
     46  ${Zlib_LIBRARY}
     47  ${WINDOWS_ENET_DEPENDENCIES}
    4648)
    4749
     
    5254  core
    5355  #objects
     56  ${ENet_LIBRARY}
     57  ${Zlib_LIBRARY}
     58  ${WINDOWS_ENET_DEPENDENCIES}
    5459)
    5560
    5661ADD_EXECUTABLE(client dummyclient2.cc)
    57 ADD_EXECUTABLE(server dummyserver.cc)
    5862TARGET_LINK_LIBRARIES( client
    5963  ${OGRE_LIBRARIES}
     
    6165  core
    6266  #objects
     67  ${ENet_LIBRARY}
     68  ${Zlib_LIBRARY}
     69  ${WINDOWS_ENET_DEPENDENCIES}
    6370)
     71
     72ADD_EXECUTABLE(server dummyserver.cc)
    6473TARGET_LINK_LIBRARIES( server
    6574  ${OGRE_LIBRARIES}
     
    6776  core
    6877  #objects
     78  ${ENet_LIBRARY}
     79  ${Zlib_LIBRARY}
     80  ${WINDOWS_ENET_DEPENDENCIES}
    6981)
    7082
  • code/branches/FICN/src/network/dummyclient2.cc

    r514 r538  
    3636#include "PacketManager.h"
    3737#include "ClientConnection.h"
     38
     39#ifdef WIN32
     40#include <windows.h>
     41#define usleep(x) Sleep((x)/1000)
     42#else
     43#include <unistd.h>
     44#endif
    3845
    3946using namespace network;
Note: See TracChangeset for help on using the changeset viewer.