Changeset 2583 for code/branches/buildsystem2/cmake/UseTolua.cmake
- Timestamp:
- Jan 12, 2009, 1:33:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/cmake/UseTolua.cmake
r2519 r2583 15 15 # along with this program; if not, write to the Free Software 16 16 # 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)23 17 24 18 MACRO(TOLUA _tolua_package _tolua_srcfiles_varname) … … 39 33 40 34 # Note: Some of the variables are already defined in src/tolua/CMakeLists.txt 35 # or in the platform config 41 36 ADD_CUSTOM_COMMAND( 42 37 OUTPUT ${_tolua_cxxfile} ${_tolua_hfile} 43 COMMAND ${TOLUA_PARSER_EXECUTABLE}-n ${_tolua_package}44 45 46 47 48 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} 50 45 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}" 52 48 ) 53 49 ENDMACRO(TOLUA)
Note: See TracChangeset
for help on using the changeset viewer.