summaryrefslogtreecommitdiff
path: root/res/Fontpack.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'res/Fontpack.cmake')
-rw-r--r--res/Fontpack.cmake19
1 files changed, 0 insertions, 19 deletions
diff --git a/res/Fontpack.cmake b/res/Fontpack.cmake
deleted file mode 100644
index 26d6df1e..00000000
--- a/res/Fontpack.cmake
+++ /dev/null
@@ -1,19 +0,0 @@
1find_program (ZIP_EXECUTABLE zip DOC "ZIP archiver")
2if (NOT ZIP_EXECUTABLE)
3 message (FATAL_ERROR "Please install 'zip' to create fontpacks.")
4endif ()
5
6function (make_fontpack src)
7 get_filename_component (dst ${src} NAME)
8 set (fn ${CMAKE_BINARY_DIR}/${dst})
9 execute_process (COMMAND ${CMAKE_COMMAND} -E remove ${fn})
10 file (GLOB files RELATIVE ${CMAKE_SOURCE_DIR}/${src}
11 ${CMAKE_SOURCE_DIR}/${src}/*
12 )
13 message (STATUS " ${src}")
14 execute_process (
15 COMMAND ${ZIP_EXECUTABLE} -0 ${fn} ${files}
16 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/${src}
17 OUTPUT_QUIET
18 )
19endfunction ()