equal
deleted
inserted
replaced
19 add_flag_append(CMAKE_Pascal_FLAGS "-fPIC") |
19 add_flag_append(CMAKE_Pascal_FLAGS "-fPIC") |
20 endif() |
20 endif() |
21 endif(UNIX) |
21 endif(UNIX) |
22 |
22 |
23 # convert list into pascal array |
23 # convert list into pascal array |
24 list(LENGTH FONTS_DIRS ndirs) |
24 if(FONTS_DIRS) |
25 set(FONTS_DIRS_ARRAY "array [0..${ndirs}] of PChar = (") |
25 list(LENGTH FONTS_DIRS ndirs) |
26 foreach(fontdir ${FONTS_DIRS}) |
26 set(FONTS_DIRS_ARRAY "array [0..${ndirs}] of PChar = (") |
27 set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\n'${fontdir}',") |
27 foreach(fontdir ${FONTS_DIRS}) |
28 endforeach(fontdir) |
28 set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\n_P'${fontdir}',") |
29 set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\nnil);\n") |
29 endforeach(fontdir) |
|
30 set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\nnil);\n") |
|
31 else(FONTS_DIRS) |
|
32 set(FONTS_DIRS_ARRAY "array [0..1] of PChar = (nil, nil);") |
|
33 endif(FONTS_DIRS) |
30 |
34 |
31 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
35 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
32 include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
36 include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
33 |
37 |
34 |
38 |