Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2008, 10:13:11 PM (17 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).

File:
1 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} )
Note: See TracChangeset for help on using the changeset viewer.