mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-27 04:31:44 +00:00
add rez files to project
This commit is contained in:
parent
a1522711e4
commit
06abc8cf19
@ -14,6 +14,7 @@ function(add_application name)
|
||||
|
||||
set(files)
|
||||
set(rsrc_files)
|
||||
set(rez_files)
|
||||
foreach(f ${ARGS_FILES})
|
||||
if(${f} MATCHES "\\.r$")
|
||||
add_custom_command(
|
||||
@ -21,6 +22,7 @@ function(add_application name)
|
||||
COMMAND ${REZ} ${CMAKE_CURRENT_SOURCE_DIR}/${f} -I ${REZ_INCLUDE_PATH} -o ${f}.rsrc.bin
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${f})
|
||||
list(APPEND rsrc_files "${CMAKE_CURRENT_BINARY_DIR}/${f}.rsrc.bin")
|
||||
list(APPEND rez_files "${f}")
|
||||
elseif(${f} MATCHES "\\.rsrc$")
|
||||
list(APPEND rsrc_files "${f}")
|
||||
elseif(${f} MATCHES "\\.rsrc.bin$")
|
||||
@ -30,7 +32,7 @@ function(add_application name)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
add_executable(${name} ${files})
|
||||
add_executable(${name} ${files} ${rez_files})
|
||||
|
||||
if(${ARGS_DEBUGBREAK})
|
||||
list(APPEND ARGS_MAKEAPPL_ARGS -b)
|
||||
|
Loading…
x
Reference in New Issue
Block a user