Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 12, 2009, 1:33:55 PM (17 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/cmake/UseTolua.cmake

    r2519 r2583  
    1515#    along with this program; if not, write to the Free Software
    1616#    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
    17 
    18 IF(MINGW_LIBRARY_DIR)
    19   SET(_tolua_command_wd "WORKING_DIRECTORY;${MINGW_LIBRARY_DIR}/lua-5.1.3/lib")
    20 ELSE(MINGW_LIBRARY_DIR)
    21   SET(_tolua_command_wd)
    22 ENDIF(MINGW_LIBRARY_DIR)
    2317
    2418MACRO(TOLUA _tolua_package _tolua_srcfiles_varname)
     
    3933
    4034  # Note: Some of the variables are already defined in src/tolua/CMakeLists.txt
     35  #       or in the platform config
    4136  ADD_CUSTOM_COMMAND(
    4237    OUTPUT ${_tolua_cxxfile} ${_tolua_hfile}
    43     COMMAND ${TOLUA_PARSER_EXECUTABLE} -n ${_tolua_package}
    44                                        -w ${CMAKE_CURRENT_SOURCE_DIR}
    45                                        -o ${_tolua_cxxfile}
    46                                        -H ${_tolua_hfile}
    47                                        -s ${TOLUA_PARSER_SOURCE}
    48                                           ${_tolua_pkgfile}
    49     DEPENDS ${TOLUA_PARSER_DEPENDENCIES}
     38    COMMAND toluaexe_orxonox -n ${_tolua_package}
     39                             -w ${CMAKE_CURRENT_SOURCE_DIR}
     40                             -o ${_tolua_cxxfile}
     41                             -H ${_tolua_hfile}
     42                             -s ${TOLUA_PARSER_SOURCE}
     43                                ${_tolua_pkgfile}
     44    DEPENDS              ${TOLUA_PARSER_DEPENDENCIES}
    5045    IMPLICIT_DEPENDS CXX ${_tolua_inputfiles}
    51     ${_tolua_command_wd}
     46    WORKING_DIRECTORY    ${TOLUA_PARSER_WORKING_DIRECTORY}
     47    COMMENT "Generating tolua bind files for package ${_tolua_package}"
    5248  )
    5349ENDMACRO(TOLUA)
Note: See TracChangeset for help on using the changeset viewer.