Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1123


Ignore:
Timestamp:
Apr 21, 2008, 9:24:30 PM (17 years ago)
Author:
rgrieder
Message:
  • cmake is now capable of building to a specified directory. That means the src directory stays clean.

To use this, create a new directory (e.g. build/), switch to it and write:
cmake orxonox_root_path #e.g. 'cmake ..', when you create myBranch/build
make

  • the header files specified in tolua.pkg are now relative to the src/ directory
  • removed verbose make output (much better sight on gcc warnings and build process) If you need verbose output: 'cmake -D make_verb:1 path'
Location:
code/branches/cmake
Files:
3 edited

Legend:

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

    r1122 r1123  
    3232
    3333#set binary output directories
    34 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
    35 SET(LIBRARY_OUTPUT_PATH    ${PROJECT_BINARY_DIR}/bin/lib)
     34SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
     35SET(LIBRARY_OUTPUT_PATH    ${PROJECT_SOURCE_DIR}/bin/lib)
    3636
    3737# global compiler/linker flags. force -O2!
     
    4343SET(CMAKE_MODULE_LINKER_FLAGS " --no-undefined")
    4444
    45 #Create verbose makefile output when compiling
    46 SET(CMAKE_VERBOSE_MAKEFILE TRUE)
     45#use 'cmake -D make_verb:1 path' to get verbose make output when compiling
     46IF (MAKE_VERB)
     47 SET(CMAKE_VERBOSE_MAKEFILE TRUE)
     48ENDIF (MAKE_VERB)
    4749
    4850
  • code/branches/cmake/src/tolua/CMakeLists.txt

    r1122 r1123  
    4141ADD_CUSTOM_COMMAND(
    4242  OUTPUT tolua_bind.h tolua_bind.cc
    43   COMMAND ${TOLUA_EXE} -n orxonox -o ../../src/tolua/tolua_bind.cc -H ../../src/tolua/tolua_bind.h ../../src/tolua/tolua.pkg
     43  COMMAND ${TOLUA_EXE} -n orxonox -o tolua/tolua_bind.cc -H tolua/tolua_bind.h tolua/tolua.pkg
    4444  DEPENDS tolua
    45   WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin/lib
     45  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src
    4646)
    4747
  • code/branches/cmake/src/tolua/tolua.pkg

    r1122 r1123  
    1 $cfile "../../src/core/Script_clean.h"
     1$cfile "core/Script_clean.h"
Note: See TracChangeset for help on using the changeset viewer.