hedgewars/CMakeLists.txt
changeset 9996 d93fb04619ee
parent 9991 3858d99476f5
child 10004 eb0b520564bb
--- a/hedgewars/CMakeLists.txt	Thu Jan 16 23:47:36 2014 +0400
+++ b/hedgewars/CMakeLists.txt	Thu Jan 16 22:38:43 2014 +0100
@@ -20,6 +20,14 @@
     endif()
 endif(UNIX)
 
+# convert list into pascal array
+list(LENGTH FONTS_DIRS ndirs)
+set(FONTS_DIRS_ARRAY "array [0..${ndirs}] of PChar = (")
+foreach(fontdir ${FONTS_DIRS})
+    set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\n'${fontdir}',")
+endforeach(fontdir)
+set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\nnil);\n")
+
 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
 include_directories(${CMAKE_CURRENT_BINARY_DIR})