Changeset 2054 for code/branches/buildsystem
- Timestamp:
- Oct 29, 2008, 3:45:22 PM (16 years ago)
- Location:
- code/branches/buildsystem
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/cmake/CheckTardis.cmake
r1999 r2054 42 42 SET(ENV{ALUTDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1") 43 43 SET(ENV{OPENALDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1") 44 SET(ENV{ENETDIR} "/usr/pack/enet-2007-sd;/usr/pack/enet-2007-sd/i686-debian-linux3.1") 44 45 #SET(TCL_INCLUDE_PATH "/usr/pack/tcltk-8.4.9.linux-mo/include") 45 46 ENDIF (IS_TARDIS) -
code/branches/buildsystem/cmake/FindALUT.cmake
r1991 r2054 20 20 # Some simplifications by Adrian Friedli 21 21 # > www.orxonox.net < 22 23 IF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)24 SET (ALUT_FIND_QUIETLY TRUE)25 ENDIF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR)26 22 27 23 FIND_PATH(ALUT_INCLUDE_DIR AL/alut.h … … 77 73 ENDIF(${ALUT_INCLUDE_DIR} MATCHES ".framework") 78 74 79 SET (ALUT_FOUND "NO") 80 IF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR) 81 SET (ALUT_FOUND "YES") 82 IF (NOT ALUT_FIND_QUIETLY) 83 MESSAGE (STATUS "FreeAlut was found.") 84 IF (VERBOSE_FIND) 85 MESSAGE (STATUS " include path: ${ALUT_INCLUDE_DIR}") 86 MESSAGE (STATUS " library path: ${ALUT_LIBRARY}") 87 MESSAGE (STATUS " libraries: alut") 88 ENDIF (VERBOSE_FIND) 89 ENDIF (NOT ALUT_FIND_QUIETLY) 90 ELSE (ALUT_LIBRARY AND ALUT_INCLUDE_DIR) 91 IF (NOT ALUT_INCLUDE_DIR) 92 MESSAGE (SEND_ERROR "FreeAlut include path was not found.") 93 ENDIF (NOT ALUT_INCLUDE_DIR) 94 IF (NOT ALUT_LIBRARY) 95 MESSAGE (SEND_ERROR "FreeAlut library was not found.") 96 ENDIF (NOT ALUT_LIBRARY) 97 ENDIF (ALUT_LIBRARY AND ALUT_INCLUDE_DIR) 75 # handle the QUIETLY and REQUIRED arguments and set ALUT_FOUND to TRUE if 76 # all listed variables are TRUE 77 INCLUDE(FindPackageHandleStandardArgs) 78 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALUT DEFAULT_MSG ALUT_LIBRARY ALUT_INCLUDE_DIR) 79 80 MARK_AS_ADVANCED(ALUT_LIBRARY ALUT_INCLUDE_DIR) -
code/branches/buildsystem/cmake/FindENet.cmake
r1999 r2054 3 3 # 4 4 # ENET_FOUND - system has enet 5 # ENET_INCLUDE_DIR - the enet include directory 6 # ENET_LIBRARIES - the libraries needed to use enet 7 # ENET_DEFINITIONS - Compiler switches required for using enet 5 # ENet_INCLUDE_DIR - the enet include directory 6 # ENet_LIBRARIES - the libraries needed to use enet 7 # 8 # $ENETDIR is an environment variable used for finding enet. 8 9 # 9 10 # Borrowed from The Mana World … … 11 12 # 12 13 # Several changes and additions by Fabian 'x3n' Landau 14 # Lots of simplifications by Adrian Friedli 13 15 # > www.orxonox.net < 14 16 15 IF (ENet_INCLUDE_DIR AND ENet_LIBRARY)16 SET(ENet_FIND_QUIETLY TRUE)17 ENDIF (ENet_INCLUDE_DIR AND ENet_LIBRARY)18 19 17 FIND_PATH(ENet_INCLUDE_DIR enet/enet.h 20 /usr/include21 /usr/local/include22 /usr/ pack/enet-2007-sd/include # Tardis specific hack23 ../libs/enet-1.1/include24 ${DEPENDENCY_DIR}/enet-1.2/include18 PATHS 19 $ENV{ENETDIR} 20 /usr/local 21 /usr 22 PATH_SUFFIXES include 25 23 ) 26 24 27 25 FIND_LIBRARY(ENet_LIBRARY 28 26 NAMES enet 29 PATHS /usr/lib /usr/local/lib /usr/pack/enet-2007-sd/i686-debian-linux3.1/lib/ 30 ../libs/enet-1.1 31 ${DEPENDENCY_DIR}/enet-1.2/lib 27 PATHS 28 $ENV{ENETDIR} 29 /usr/local 30 /usr 31 PATH_SUFFIXES lib 32 32 ) 33 33 34 SET(ENET_FOUND FALSE) 35 IF (ENet_INCLUDE_DIR AND ENet_LIBRARY) 36 SET(ENET_FOUND TRUE)37 SET(ENET_INCLUDE_DIR ${ENet_INCLUDE_DIR})34 # handle the QUIETLY and REQUIRED arguments and set ENET_FOUND to TRUE if 35 # all listed variables are TRUE 36 INCLUDE(FindPackageHandleStandardArgs) 37 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ENet DEFAULT_MSG ENet_LIBRARY ENet_INCLUDE_DIR) 38 38 39 IF (ENET_FOUND) 39 40 IF(WIN32) 40 41 SET(WINDOWS_ENET_DEPENDENCIES "ws2_32;winmm") 41 SET(ENet_LIBRARY ${ENet_LIBRARY} ${WINDOWS_ENET_DEPENDENCIES}) 42 SET(ENet_LIBRARIES ${ENet_LIBRARY} ${WINDOWS_ENET_DEPENDENCIES}) 43 ELSE(WIN32) 44 SET(ENet_LIBRARIES ${ENet_LIBRARY}) 42 45 ENDIF(WIN32) 43 44 SET(ENET_LIBRARIES ${ENet_LIBRARY})45 ENDIF (ENet_INCLUDE_DIR AND ENet_LIBRARY)46 47 IF (ENET_FOUND)48 IF (NOT ENet_FIND_QUIETLY)49 MESSAGE(STATUS "ENet was found.")50 IF (VERBOSE_FIND)51 MESSAGE (STATUS " include path: ${ENet_INCLUDE_DIR}")52 MESSAGE (STATUS " library path: ${ENet_LIBRARY}")53 MESSAGE (STATUS " libraries: enet")54 ENDIF (VERBOSE_FIND)55 ENDIF (NOT ENet_FIND_QUIETLY)56 ELSE (ENET_FOUND)57 IF (NOT ENet_INCLUDE_DIR)58 MESSAGE(SEND_ERROR "ENet include path was not found.")59 ENDIF (NOT ENet_INCLUDE_DIR)60 IF (NOT ENet_LIBRARY)61 MESSAGE(SEND_ERROR "ENet library was not found.")62 ENDIF (NOT ENet_LIBRARY)63 46 ENDIF (ENET_FOUND) 64 47 65 MARK_AS_ADVANCED(ENet_ INCLUDE_DIR ENet_LIBRARY)48 MARK_AS_ADVANCED(ENet_LIBRARY ENet_INCLUDE_DIR) -
code/branches/buildsystem/src/CMakeLists.txt
r1980 r2054 17 17 18 18 # Set the search paths for the linking 19 # TODO: remove this after the CMake Modules have been fixed and use absolut paths 19 20 LINK_DIRECTORIES( 20 21 ${OGRE_LIB_DIR} 21 22 ${CEGUI_LIB_DIR} 22 # ${CEGUI_SCRIPT_LIB_DIR}23 # ${CEGUI_OGRE_LIB_DIR}24 ${ENet_LIBRARY}25 ${Boost_LIBRARY_DIRS}26 ${Zlib_LIBRARY_DIR}27 ${TCL_LIBRARY}28 23 ) 29 24 -
code/branches/buildsystem/src/network/CMakeLists.txt
r1977 r2054 27 27 TARGET_LINK_LIBRARIES( network 28 28 ${ZLIB_LIBRARY} 29 ${ENet_LIBRAR Y}29 ${ENet_LIBRARIES} 30 30 ${Boost_THREAD_LIBRARY} 31 31 core … … 43 43 ${OGRE_LIBRARIES} 44 44 network 45 ${ENet_LIBRAR Y}45 ${ENet_LIBRARIES} 46 46 ${ZLIB_LIBRARY} 47 ${WINDOWS_ENET_DEPENDENCIES}48 47 ) 49 48 ##### end test for gamestate stuff #####
Note: See TracChangeset
for help on using the changeset viewer.