Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 12, 2009, 1:33:55 PM (15 years ago)
Author:
rgrieder
Message:
  • Use $ENV{BOOST_ROOT} to find boost if possible
  • Set TOLUA_PARSER_WORKING_DIRECTORY now defaults to ${CMAKE_RUNTIME_OUTPUT_PATH}
  • Added bin/release, bin/debug, release and debug to the Ogre library prefix paths
  • Lots of small fixes and changes
Location:
code/branches/buildsystem2/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/src/CMakeLists.txt

    r2574 r2583  
    33  ${OGRE_INCLUDE_DIR}
    44  ${CEGUI_INCLUDE_DIR}
    5   ${ENet_INCLUDE_DIR}
     5  ${ENET_INCLUDE_DIR}
    66  ${Boost_INCLUDE_DIRS}
    77  ${OPENAL_INCLUDE_DIR}
     
    1717# Check whether the required CEGUILua version is even available
    1818IF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION})
    19   MESSAGE(FATAL_ERROR "Your CEGUI version is not supported (${CEGUI_VERSION})")
     19  MESSAGE(FATAL_ERROR "No matching CEGUILua version shipped with Orxonox (${CEGUI_VERSION})")
    2020ENDIF(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ceguilua-${CEGUI_VERSION})
    2121
     
    3939SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTIXML_USE_TICPP")
    4040
     41# Include macros
     42INCLUDE(AddSourceFiles)
     43INCLUDE(UseTolua)
     44
     45# External libraries, but copied into the repository
    4146ADD_SUBDIRECTORY(ceguilua-${CEGUI_VERSION}/ceguilua)
    4247ADD_SUBDIRECTORY(cpptcl)
     
    4651ADD_SUBDIRECTORY(tolua)
    4752
    48 # Include macros
    49 INCLUDE(AddSourceFiles)
    50 INCLUDE(UseTolua)
    51 
    5253# Our own libraries
    5354ADD_SUBDIRECTORY(util)
  • code/branches/buildsystem2/src/audio/CMakeLists.txt

    r2579 r2583  
    1919  ${OGG_LIBRARY}
    2020  core
     21  util
    2122)
    2223
  • code/branches/buildsystem2/src/network/CMakeLists.txt

    r2581 r2583  
    2828  ${ENET_LIBRARY}
    2929  ${Boost_THREAD_LIBRARY}
     30  util
    3031  core
    3132)
  • code/branches/buildsystem2/src/ogreceguirenderer/CMakeLists.txt

    r2579 r2583  
    77ADD_LIBRARY(ogreceguirenderer_orxonox SHARED ${SRC_FILES})
    88
     9TARGET_LINK_LIBRARIES(ogreceguirenderer_orxonox
     10  ${OGRE_LIBRARY}
     11  ${CEGUI_LIBRARY}
     12)
    913IF (NOT WIN32)
    1014  INSTALL(TARGETS ogreceguirenderer_orxonox LIBRARY DESTINATION lib)
  • code/branches/buildsystem2/src/orxonox/OrxonoxPrereqs.h

    r2261 r2583  
    4040// Shared library settings
    4141//-----------------------------------------------------------------------
     42#define ORXONOX_NO_EXPORTS // This is an executable that needs no exports
    4243#if (ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32) && !(defined(ORXONOX_STATIC_BUILD) || defined(ORXONOX_NO_EXPORTS))
    4344#  ifdef ORXONOX_SHARED_BUILD
  • code/branches/buildsystem2/src/tolua/CMakeLists.txt

    r2579 r2583  
    66  tolua_to.c
    77)
     8TARGET_LINK_LIBRARIES(tolualib_orxonox ${LUA_LIBRARY})
    89
    910IF (NOT WIN32)
     
    2728ENDIF("${LUA_VERSION}" MATCHES "^5.0")
    2829
    29 # Set some variables to the parent scope in order to use them in the TOLUA macro
    30 GET_TARGET_PROPERTY(_temp_location toluaexe_orxonox LOCATION)
    31 SET(TOLUA_PARSER_EXECUTABLE ${_temp_location} PARENT_SCOPE)
    32 SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" PARENT_SCOPE)
     30# Set some variables to the cache in order to use them in the TOLUA macro
     31SET(TOLUA_PARSER_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${TOLUA_ALL_PACK}" CACHE STRING "")
    3332SET(TOLUA_PARSER_DEPENDENCIES
    3433  toluaexe_orxonox
     
    5655  ${CMAKE_CURRENT_SOURCE_DIR}/lua/doit.lua
    5756
    58   PARENT_SCOPE
     57  CACHE STRING ""
    5958)
     59MARK_AS_ADVANCED(TOLUA_PARSER_SOURCE TOLUA_PARSER_DEPENDENCIES)
Note: See TracChangeset for help on using the changeset viewer.