equal
deleted
inserted
replaced
13 include_directories(${PHYSFS_INCLUDE_DIR}) |
13 include_directories(${PHYSFS_INCLUDE_DIR}) |
14 include_directories(${PHYSLAYER_INCLUDE_DIR}) |
14 include_directories(${PHYSLAYER_INCLUDE_DIR}) |
15 include_directories(${LUA_INCLUDE_DIR}) |
15 include_directories(${LUA_INCLUDE_DIR}) |
16 include_directories(${SDL_INCLUDE_DIR}) |
16 include_directories(${SDL_INCLUDE_DIR}) |
17 add_subdirectory(rtl) |
17 add_subdirectory(rtl) |
|
18 |
|
19 # convert list into pascal array |
|
20 if(FONTS_DIRS) |
|
21 list(LENGTH FONTS_DIRS ndirs) |
|
22 set(FONTS_DIRS_ARRAY "array [0..${ndirs}] of PChar = (") |
|
23 foreach(fontdir ${FONTS_DIRS}) |
|
24 set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\n_P'${fontdir}',") |
|
25 endforeach(fontdir) |
|
26 set(FONTS_DIRS_ARRAY "${FONTS_DIRS_ARRAY}\nnil);\n") |
|
27 else(FONTS_DIRS) |
|
28 set(FONTS_DIRS_ARRAY "array [0..1] of PChar = (nil, nil);") |
|
29 endif(FONTS_DIRS) |
18 |
30 |
19 configure_file(${CMAKE_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
31 configure_file(${CMAKE_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
20 |
32 |
21 #get the list of pas files that are going to be converted and compiled |
33 #get the list of pas files that are going to be converted and compiled |
22 file(GLOB engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/*.pas") |
34 file(GLOB engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/*.pas") |