Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 29, 2009, 11:35:54 PM (15 years ago)
Author:
rgrieder
Message:

This commit gets a little ugly, couldn't separate that anymore:

  • Renamed UseTolua.cmake to GenerateLuaBindings.cmake
  • Applied the macros for compiler flags, linker flags, header files and source groups Updated the whole build tree for that
  • Created real compiler config scripts (BuildConfigGCC.cmake and BuildConfigMSVC.cmake)
  • Large scale clean up in BuildConfig.cmake
  • You can now specify your own LibraryConfig and BuildConfig script via CMake Cache
  • Lots of small changes and fixes
File:
1 edited

Legend:

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

    r2599 r2621  
    1 ADD_SOURCE_FILES(
     1SET_SOURCE_FILES(ORXONOX_SRC_FILES
    22  CameraManager.cc
    33  GraphicsEngine.cc
     
    77  Settings.cc
    88)
     9ADD_SUBDIRECTORY(gamestates)
     10ADD_SUBDIRECTORY(gui)
     11ADD_SUBDIRECTORY(objects)
     12ADD_SUBDIRECTORY(overlays)
     13ADD_SUBDIRECTORY(tools)
     14GET_ALL_HEADER_FILES(ORXONOX_HDR_FILES)
     15SET(ORXONOX_FILES ${ORXONOX_SRC_FILES} ${ORXONOX_HDR_FILES})
    916
    10 ADD_SOURCE_DIRECTORY(gamestates)
    11 ADD_SOURCE_DIRECTORY(gui)
    12 ADD_SOURCE_DIRECTORY(objects)
    13 ADD_SOURCE_DIRECTORY(overlays)
    14 ADD_SOURCE_DIRECTORY(tools)
    15 
    16 WRITE_SOURCE_FILES(ORXONOX_SRC_FILES)
    17 
    18 TOLUA(Orxonox ORXONOX_SRC_FILES INPUTFILES gui/GUIManager.h)
     17GENERATE_SOURCE_GROUPS(${ORXONOX_FILES})
     18GENERATE_TOLUA_BINDINGS(Orxonox ORXONOX_FILES INPUTFILES gui/GUIManager.h)
    1919
    2020# Not using precompiled header files: Avoid dependencies
    2121INCLUDE_DIRECTORIES(pch/nopch)
    2222
    23 # Enlarge heap size for precompiled header files
    24 ADD_CXX_FLAGS("-Zm200" MSVC)
    25 
    26 ADD_EXECUTABLE(orxonox ${ORXONOX_SRC_FILES})
     23ADD_EXECUTABLE(orxonox ${ORXONOX_FILES})
    2724GET_TARGET_PROPERTY(_exec_loc orxonox LOCATION)
    2825GET_FILENAME_COMPONENT(_exec_name ${_exec_loc} NAME)
     
    4441  ${CEGUI_LIBRARY}
    4542  ${LUA_LIBRARIES}
    46   #${CEGUI_SCRIPT_LIBRARIES}
    47   ceguilua_orxonox
     43  ${CEGUILUA_LIBRARY}
    4844  ogreceguirenderer_orxonox
    49   tinyxml_orxonox
    50   tolualib_orxonox
     45  tinyxml++_orxonox
     46  tolua++_orxonox
    5147  util
    5248  core
Note: See TracChangeset for help on using the changeset viewer.