diff options
Diffstat (limited to 'res/Embed.cmake')
-rw-r--r-- | res/Embed.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/res/Embed.cmake b/res/Embed.cmake index bab06347..1a971cc1 100644 --- a/res/Embed.cmake +++ b/res/Embed.cmake | |||
@@ -3,9 +3,16 @@ | |||
3 | # License: BSD 2-Clause | 3 | # License: BSD 2-Clause |
4 | 4 | ||
5 | option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) | 5 | option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) |
6 | option (ENABLE_BINCAT_SH "Prepare resource files using the 'bincat.sh' shell script" ON) | ||
7 | |||
8 | if (ENABLE_BINCAT_SH OR CMAKE_CROSSCOMPILING) | ||
9 | set (embed_use_bincat_sh YES) | ||
10 | endif () | ||
6 | 11 | ||
7 | # Build "bincat" for concatenating files. | 12 | # Build "bincat" for concatenating files. |
8 | if (NOT ENABLE_RESOURCE_EMBED) | 13 | if (embed_use_bincat_sh) |
14 | set (BINCAT_COMMAND ${CMAKE_SOURCE_DIR}/res/bincat.sh) | ||
15 | elseif (NOT ENABLE_RESOURCE_EMBED) | ||
9 | message (STATUS "Compiling bincat for merging resource files...") | 16 | message (STATUS "Compiling bincat for merging resource files...") |
10 | set (_catDir ${CMAKE_BINARY_DIR}/res) | 17 | set (_catDir ${CMAKE_BINARY_DIR}/res) |
11 | execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory ${_catDir}) | 18 | execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory ${_catDir}) |