diff options
Diffstat (limited to 'Embed.cmake')
-rw-r--r-- | Embed.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Embed.cmake b/Embed.cmake index 16c47683..810c947b 100644 --- a/Embed.cmake +++ b/Embed.cmake | |||
@@ -69,6 +69,7 @@ function (embed_make) | |||
69 | endif () | 69 | endif () |
70 | if (needGen) | 70 | if (needGen) |
71 | if (EMBED_IN_EXECUTABLE) | 71 | if (EMBED_IN_EXECUTABLE) |
72 | # Compose a source file with the resource data in an array. | ||
72 | file (WRITE ${EMB_H} "#include <the_Foundation/block.h>\n") | 73 | file (WRITE ${EMB_H} "#include <the_Foundation/block.h>\n") |
73 | file (WRITE ${EMB_C} "#include \"embedded.h\"\n") | 74 | file (WRITE ${EMB_C} "#include \"embedded.h\"\n") |
74 | foreach (fn ${ARGV}) | 75 | foreach (fn ${ARGV}) |
@@ -76,6 +77,7 @@ function (embed_make) | |||
76 | embed_write (${fn} ${resName} ${EMB_C} ${EMB_H}) | 77 | embed_write (${fn} ${resName} ${EMB_C} ${EMB_H}) |
77 | endforeach (fn) | 78 | endforeach (fn) |
78 | else () | 79 | else () |
80 | # Collect resources in a single binary file. | ||
79 | set (EMB_BIN ${CMAKE_CURRENT_BINARY_DIR}/resources.bin) | 81 | set (EMB_BIN ${CMAKE_CURRENT_BINARY_DIR}/resources.bin) |
80 | file (REMOVE ${EMB_BIN}) | 82 | file (REMOVE ${EMB_BIN}) |
81 | execute_process (COMMAND cat ${ARGV} OUTPUT_FILE ${EMB_BIN} | 83 | execute_process (COMMAND cat ${ARGV} OUTPUT_FILE ${EMB_BIN} |