Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 547 for code


Ignore:
Timestamp:
Dec 17, 2007, 12:16:02 AM (17 years ago)
Author:
landauf
Message:

compiles with mingw

Location:
code/branches/FICN
Files:
5 edited

Legend:

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

    r539 r547  
    6666FIND_PACKAGE(ZLIB)
    6767
    68 IF(WIN32)
    69   SET(WINDOWS_ENET_DEPENDENCIES "ws2_32;winmm")
    70 ENDIF(WIN32)
    71 
    7268#Sets the search paths for the linking
    7369LINK_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)
  • code/branches/FICN/cmake/FindENet.cmake

    r536 r547  
    2828    )
    2929
     30IF(WIN32)
     31  SET(WINDOWS_ENET_DEPENDENCIES "ws2_32;winmm")
     32ENDIF(WIN32)
     33SET(ENet_LIBRARY ${ENet_LIBRARY} ${WINDOWS_ENET_DEPENDENCIES})
     34
    3035IF (ENet_INCLUDE_DIR AND ENet_LIBRARY)
    3136    SET(ENET_FOUND TRUE)
  • code/branches/FICN/cmake/FindZLIB.cmake

    r539 r547  
    6060  FIND_LIBRARY(ZLIB_LIBRARY
    6161    NAMES zlib
    62     PATHS ${Zlib_LIBRARY_DIR}
     62    PATHS ${ZLIB_LIBRARY_DIR}
    6363  )
    6464
    65   IF(Zlib_LIBRARY)
     65  IF(ZLIB_LIBRARY)
    6666    MESSAGE(STATUS "Zlib was found.")
    67   ELSE(Zlib_LIBRARY)
     67  ELSE(ZLIB_LIBRARY)
    6868    MESSAGE(FATAL_ERROR "Zlib was NOT found.")
    6969  ENDIF(ZLIB_LIBRARY)
  • code/branches/FICN/src/orxonox/CMakeLists.txt

    r535 r547  
    33ADD_SUBDIRECTORY(core)
    44ADD_SUBDIRECTORY(hud)
    5 ADD_SUBDIRECTORY(objects)
     5IF(NOT WIN32)
     6  ADD_SUBDIRECTORY(objects)
     7ENDIF(NOT WIN32)
    68ADD_SUBDIRECTORY(weapon)
    79ADD_SUBDIRECTORY(particle)
     
    1921)
    2022
    21 ADD_LIBRARY(orxonox SHARED ${ORXONOX_SRC_FILES})
     23IF(WIN32)
     24  SET( OBJECTS_SRC_FILES
     25    objects/BaseObject.cc
     26    objects/WorldEntity.cc
     27    objects/test1.cc
     28    objects/test2.cc
     29    objects/test3.cc
     30    objects/Ambient.cc
     31    objects/Skybox.cc
     32    objects/SceneNode.cc
     33    objects/Entity.cc
     34    objects/Camera.cc
     35    objects/SpaceshipSteeringObject.cc
     36  )
     37ELSE(WIN32)
     38  SET(LINK_OBJECTS_LIBRARY objects)
     39ENDIF(WIN32)
    2240
    23 ADD_EXECUTABLE(../../bin/main ${ORXONOX_SRC_FILES})
     41ADD_LIBRARY(orxonox ${ORXONOX_SRC_FILES})
     42
     43ADD_EXECUTABLE(../../bin/main ${ORXONOX_SRC_FILES} ${OBJECTS_SRC_FILES})
    2444
    2545SET_TARGET_PROPERTIES(../../bin/main PROPERTIES LINK_FLAGS "--no-undefined" )
     
    3353  core
    3454  hud
    35   objects
     55  ${LINK_OBJECTS_LIBRARY}
    3656  weapon
    3757  xml
  • code/branches/FICN/src/orxonox/objects/CMakeLists.txt

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