Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 538 for code/branches


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

windows library include (for enet)

Location:
code/branches/FICN
Files:
4 edited

Legend:

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

    r466 r538  
    6464FIND_PACKAGE(ALUT)
    6565FIND_PACKAGE(OggVorbis)
     66FIND_PACKAGE(Zlib)
     67
     68IF(WIN32)
     69  SET(WINDOWS_ENET_DEPENDENCIES "ws2_32;winmm")
     70ENDIF(WIN32)
    6671
    6772#Sets the search paths for the linking
    68 LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR} ${CEGUI_LIB_DIR} ${CEGUI_OGRE_LIB_DIR} ${ENet_LIBRARY} ${Boost_LIBRARY_DIRS} core objects loader network weapon classHierarchy audio)
     73LINK_DIRECTORIES(${OGRE_LIB_DIR} ${OIS_LIB_DIR} ${CEGUI_LIB_DIR} ${CEGUI_OGRE_LIB_DIR} ${ENet_LIBRARY} ${Boost_LIBRARY_DIRS} ${Zlib_LIBRARY_DIR} core objects loader network weapon classHierarchy audio)
    6974#Sets the search path for include files
    70 INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR} ${CEGUI_INCLUDE_DIR} ${CEGUI_OGRE_INCLUDE_DIR} ${ENet_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${OPENAL_INCLUDE_DIR} ${ALUT_INCLUDE_DIR} ${OGG_INCLUDE_DIR} ${VORBIS_INCLUDE_DIR})
     75INCLUDE_DIRECTORIES(${OGRE_INCLUDE_DIR} ${OIS_INCLUDE_DIR} ${CEGUI_INCLUDE_DIR} ${CEGUI_OGRE_INCLUDE_DIR} ${ENet_INCLUDE_DIR} ${Boost_INCLUDE_DIRS} ${OPENAL_INCLUDE_DIR} ${ALUT_INCLUDE_DIR} ${VORBIS_INCLUDE_DIR} ${OGG_INCLUDE_DIR})
    7176
    7277#add main source dir
  • 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;
  • code/branches/FICN/src/orxonox/objects/CMakeLists.txt

    r515 r538  
    2020  xml
    2121  orxonox
     22  ${WINDOWS_ENET_DEPENDENCIES}
    2223)
Note: See TracChangeset for help on using the changeset viewer.