mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2026-10-04 12:47:54 +03:00
Version 1.08 with public source code release.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Compilation step for static resources
|
||||
FUNCTION(ADD_RESOURCES out_var path file)
|
||||
SET(result)
|
||||
SET(result "${PROJECT_BINARY_DIR}/${file}.o")
|
||||
ADD_CUSTOM_COMMAND(OUTPUT ${result}
|
||||
COMMAND ld -m elf_i386 -L"${path}" -r -b binary -o ${result} ${file}
|
||||
DEPENDS ${path}/${file}
|
||||
WORKING_DIRECTORY ${path}
|
||||
COMMENT "Building binary data object ${result}"
|
||||
VERBATIM)
|
||||
SET(${out_var} "${result}" PARENT_SCOPE)
|
||||
ENDFUNCTION()
|
||||
Reference in New Issue
Block a user