Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 3, 2010, 12:28:15 AM (14 years ago)
Author:
adrfried
Message:

compile with own libenet

File:
1 copied

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/external/enet/CMakeLists.txt

    r7328 r7329  
    1818 #
    1919
    20 ################ Sub Directories ################
     20SET_SOURCE_FILES(ENET_FILES
     21        include/enet/callbacks.h
     22        include/enet/enet.h
     23        include/enet/list.h
     24        include/enet/protocol.h
     25        include/enet/time.h
     26        include/enet/types.h
     27        include/enet/unix.h
     28        include/enet/utility.h
     29        #include/enet/win32.h
    2130
    22 ADD_SUBDIRECTORY(tolua)
     31COMPILATION_BEGIN ENetCompilation.cpp
     32        callbacks.c
     33        compress.c
     34        host.c
     35        list.c
     36        packet.c
     37        peer.c
     38        protocol.c
     39        unix.c
     40        #win32.c
     41COMPILATION_END
     42)
    2343
    24 # Include CEGUILua if not requested otherwise
    25 IF(CEGUILUA_USE_INTERNAL_LIBRARY)
    26   IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua/ceguilua-${CEGUI_VERSION})
    27     MESSAGE(FATAL_ERROR "CEGUILua version not found in src folder. Update list of supported versions in LibraryConfig.cmake!")
    28   ENDIF()
     44INCLUDE_DIRECTORIES(include)
    2945
    30   ADD_SUBDIRECTORY(ceguilua)
    31   SET(CEGUILUA_LIBRARY ${CEGUILUA_LIBRARY} PARENT_SCOPE)
    32 ENDIF()
     46ORXONOX_ADD_LIBRARY(enet_orxonox
     47        ORXONOX_EXTERNAL
     48        VERSION 1.3.0
     49        SOURCE_FILES ${ENET_FILES}
     50)
    3351
    34 ADD_SUBDIRECTORY(bullet)
    35 ADD_SUBDIRECTORY(cpptcl)
    36 ADD_SUBDIRECTORY(loki)
    37 ADD_SUBDIRECTORY(ogreceguirenderer)
    38 ADD_SUBDIRECTORY(ois)
    39 ADD_SUBDIRECTORY(tinyxml)
     52SET_TARGET_PROPERTIES(enet_orxonox PROPERTIES DEFINE_SYMBOL "HAS_POLL")
     53SET_TARGET_PROPERTIES(enet_orxonox PROPERTIES DEFINE_SYMBOL "HAS_FCNTL")
     54SET_TARGET_PROPERTIES(enet_orxonox PROPERTIES DEFINE_SYMBOL "HAS_MSGHDR_FLAGS")
     55SET_TARGET_PROPERTIES(enet_orxonox PROPERTIES DEFINE_SYMBOL "HAS_SOCKLEN_T")
Note: See TracChangeset for help on using the changeset viewer.