equal
deleted
inserted
replaced
17 target_architecture(CMAKE_TARGET_ARCHITECTURES) |
17 target_architecture(CMAKE_TARGET_ARCHITECTURES) |
18 if(${CMAKE_Pascal_COMPILER_VERSION} VERSION_GREATER 2.7 OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "i386") |
18 if(${CMAKE_Pascal_COMPILER_VERSION} VERSION_GREATER 2.7 OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "i386") |
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 |
|
23 # convert list into pascal array |
|
24 list(LENGTH FONTS_DIRS ndirs) |
|
25 set(FONTS_DIRS_ARRAY "array [0..${ndirs}] of PChar = (") |
|
26 foreach(fontdir ${FONTS_DIRS}) |
|
27 set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\n'${fontdir}',") |
|
28 endforeach(fontdir) |
|
29 set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\nnil);\n") |
22 |
30 |
23 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
31 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
24 include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
32 include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
25 |
33 |
26 |
34 |