mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-17 05:29:38 +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(files)
|
||||||
set(rsrc_files)
|
set(rsrc_files)
|
||||||
|
set(rez_files)
|
||||||
foreach(f ${ARGS_FILES})
|
foreach(f ${ARGS_FILES})
|
||||||
if(${f} MATCHES "\\.r$")
|
if(${f} MATCHES "\\.r$")
|
||||||
add_custom_command(
|
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
|
COMMAND ${REZ} ${CMAKE_CURRENT_SOURCE_DIR}/${f} -I ${REZ_INCLUDE_PATH} -o ${f}.rsrc.bin
|
||||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${f})
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${f})
|
||||||
list(APPEND rsrc_files "${CMAKE_CURRENT_BINARY_DIR}/${f}.rsrc.bin")
|
list(APPEND rsrc_files "${CMAKE_CURRENT_BINARY_DIR}/${f}.rsrc.bin")
|
||||||
|
list(APPEND rez_files "${f}")
|
||||||
elseif(${f} MATCHES "\\.rsrc$")
|
elseif(${f} MATCHES "\\.rsrc$")
|
||||||
list(APPEND rsrc_files "${f}")
|
list(APPEND rsrc_files "${f}")
|
||||||
elseif(${f} MATCHES "\\.rsrc.bin$")
|
elseif(${f} MATCHES "\\.rsrc.bin$")
|
||||||
|
@ -30,7 +32,7 @@ function(add_application name)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
add_executable(${name} ${files})
|
add_executable(${name} ${files} ${rez_files})
|
||||||
|
|
||||||
if(${ARGS_DEBUGBREAK})
|
if(${ARGS_DEBUGBREAK})
|
||||||
list(APPEND ARGS_MAKEAPPL_ARGS -b)
|
list(APPEND ARGS_MAKEAPPL_ARGS -b)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user