equal
deleted
inserted
replaced
8 |
8 |
9 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
9 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
10 |
10 |
11 #SOURCE AND PROGRAMS SECTION |
11 #SOURCE AND PROGRAMS SECTION |
12 if(${BUILD_ENGINE_LIBRARY}) |
12 if(${BUILD_ENGINE_LIBRARY}) |
13 set(engine_output_name "${CMAKE_SHARED_LIBRARY_PREFIX}hwLibrary${CMAKE_SHARED_LIBRARY_SUFFIX}") |
13 set(engine_output_name "${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}") |
14 set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwLibrary.pas) |
14 set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwLibrary.pas) |
15 else() |
15 else() |
16 set(engine_output_name "hwengine${CMAKE_EXECUTABLE_SUFFIX}") |
16 set(engine_output_name "hwengine${CMAKE_EXECUTABLE_SUFFIX}") |
17 set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwengine.pas) |
17 set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwengine.pas) |
18 endif() |
18 endif() |
204 |
204 |
205 if(NOT APPLE) |
205 if(NOT APPLE) |
206 #here is the command for standard executables or for shared library |
206 #here is the command for standard executables or for shared library |
207 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}" |
207 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}" |
208 COMMAND "${FPC_EXECUTABLE}" |
208 COMMAND "${FPC_EXECUTABLE}" |
209 ARGS ${fpc_flags} |
209 ARGS ${fpc_flags} -o${engine_output_name} |
210 MAIN_DEPENDENCY ${hwengine_project} |
210 MAIN_DEPENDENCY ${hwengine_project} |
211 DEPENDS ${engine_sources} |
211 DEPENDS ${engine_sources} |
212 ) |
212 ) |
213 else() |
213 else() |
214 #these are the dependencies for building a universal binary on Mac OS X |
214 #these are the dependencies for building a universal binary on Mac OS X |