Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2008, 10:13:11 PM (16 years ago)
Author:
rgrieder
Message:

Resolved tolua include directory problem in another fashion by adding CMAKE_BINARY_DIR/src to the include directories and adjusting the the include directives. There were some changes necessary in package.lua (it uses the package name as folder to write "#include "core/CommandExecutor.h"").

The problem with the old resolution (-iquotes) was that you could write "#include "Core.h"" in a file that is not in the core, because src/core was effectively added to the list of include directories (just the ones with quotes of course).

Location:
code/branches/buildsystem/src/orxonox
Files:
2 edited

Legend:

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

    r2198 r2239  
    6666INCLUDE(UseTolua)
    6767TOLUA(Orxonox ORXONOX_SRC_FILES INPUTFILES gui/GUIManager.h)
    68 INCLUDE_DIRECTORIES_QUOTES(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
    69 INCLUDE_DIRECTORIES_QUOTES("${CMAKE_SOURCE_DIR}/src/core" "${CMAKE_BINARY_DIR}/src/core")
    7068
    7169ADD_EXECUTABLE( orxonox ${ORXONOX_SRC_FILES} )
  • code/branches/buildsystem/src/orxonox/gui/GUIManager.cc

    r1975 r2239  
    4343#include "core/input/InputManager.h"
    4444#include "core/input/SimpleInputState.h"
    45 #include "../core/tolua_bind.h"
    4645#include "core/ConsoleCommand.h"
    4746#include "core/Core.h"
    48 #include "tolua_bind.h"
     47#include "core/ToluaBindCore.h"
     48#include "orxonox/ToluaBindOrxonox.h"
    4949#include "GraphicsEngine.h"
    5050#include "OgreCEGUIRenderer.h"
Note: See TracChangeset for help on using the changeset viewer.