Changeset 2236 for code/branches/buildsystem/cmake
- Timestamp:
- Nov 20, 2008, 8:51:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem/cmake/UseTolua.cmake
r2233 r2236 16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 17 17 18 SET(_tolua_executable_name tolua _orxonox)18 SET(_tolua_executable_name toluaexe_orxonox) 19 19 GET_TARGET_PROPERTY(TOLUA_EXECUTABLE "${_tolua_executable_name}" LOCATION) 20 20 … … 33 33 SET(_tolua_pkgfile "${CMAKE_CURRENT_BINARY_DIR}/tolua.pkg") 34 34 SET(_tolua_cxxfile "${CMAKE_CURRENT_BINARY_DIR}/tolua_bind.cc") 35 SET(_tolua_hfile "${CMAKE_CURRENT_BINARY_DIR}/tolua_bind.h")35 SET(_tolua_hfile "${CMAKE_CURRENT_BINARY_DIR}/tolua_bind.h") 36 36 SET(${_tolua_srcfiles_varname} ${${_tolua_srcfiles_varname}} "${_tolua_cxxfile}") 37 37 … … 44 44 ADD_CUSTOM_COMMAND( 45 45 OUTPUT "${_tolua_cxxfile}" "${_tolua_hfile}" 46 COMMAND "${TOLUA_EXECUTABLE}" -n "${_tolua_package}" -w ${CMAKE_CURRENT_SOURCE_DIR} -o "${_tolua_cxxfile}" -H "${_tolua_hfile}" "${_tolua_pkgfile}" 47 DEPENDS "${_tolua_executable_name}" ${_tolua_inputfiles} 48 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" 46 COMMAND "${TOLUA_EXECUTABLE}" -n "${_tolua_package}" 47 -w "${CMAKE_CURRENT_SOURCE_DIR}" 48 -o "${_tolua_cxxfile}" 49 -H "${_tolua_hfile}" 50 -s "${TOLUA_PARSER_SOURCE}" 51 "${_tolua_pkgfile}" 52 DEPENDS "${_tolua_executable_name}" ${_tolua_inputfiles} ${TOLUA_PARSER_DEPENDENCIES} 53 WORKING_DIRECTORY "${LIBRARY_OUTPUT_PATH}" 49 54 ) 50 55 ENDMACRO(TOLUA)
Note: See TracChangeset
for help on using the changeset viewer.