hedgewars/CMakeLists.txt
changeset 8058 bcebfc477459
parent 8022 10b3b93c1f56
child 8064 202e2cce7077
equal deleted inserted replaced
8054:39f8ea1a441f 8058:bcebfc477459
    52     uLandTemplates.pas
    52     uLandTemplates.pas
    53     uLandTexture.pas
    53     uLandTexture.pas
    54     uLocale.pas
    54     uLocale.pas
    55     uMisc.pas
    55     uMisc.pas
    56     uMobile.pas
    56     uMobile.pas
       
    57     uPhysFSLayer.pas
    57     uRandom.pas
    58     uRandom.pas
    58     uRender.pas
    59     uRender.pas
    59     uRenderUtils.pas
    60     uRenderUtils.pas
    60     uScript.pas
    61     uScript.pas
    61     uSinTable.pas
    62     uSinTable.pas
    97     if (APPLE)
    98     if (APPLE)
    98         set(engine_output_name "hwengine.dylib")
    99         set(engine_output_name "hwengine.dylib")
    99     endif (APPLE)
   100     endif (APPLE)
   100 endif(BUILD_ENGINE_LIBRARY)
   101 endif(BUILD_ENGINE_LIBRARY)
   101 
   102 
       
   103 # doesn't work for some reason (doesn't find symbols)
       
   104 #set(pascal_flags "-k${LIBRARY_OUTPUT_PATH}/libphysfs.a" ${pascal_flags})
       
   105 
   102 IF(FPC)
   106 IF(FPC)
   103     set(fpc_executable ${FPC})
   107     set(fpc_executable ${FPC})
   104 ELSE()
   108 ELSE()
   105     find_program(fpc_executable fpc)
   109     find_program(fpc_executable fpc)
   106 ENDIF()
   110 ENDIF()
   267 #when system Lua is not found we need to compile it before engine
   271 #when system Lua is not found we need to compile it before engine
   268 if(NOT LUA_FOUND)
   272 if(NOT LUA_FOUND)
   269     add_dependencies(${engine_output_name} lua)
   273     add_dependencies(${engine_output_name} lua)
   270 endif()
   274 endif()
   271 
   275 
       
   276 # compile physfs before engine
       
   277 add_dependencies(${engine_output_name} physfs)
       
   278 add_dependencies(${engine_output_name} physfsrwops)
       
   279 
   272 #when ffmpeg/libav is found we need to compile it before engine
   280 #when ffmpeg/libav is found we need to compile it before engine
   273 #TODO: convert avwrapper to .pas unit so we can skip this step
   281 #TODO: convert avwrapper to .pas unit so we can skip this step
   274 if(${FFMPEG_FOUND})
   282 if(${FFMPEG_FOUND})
   275     add_dependencies(${engine_output_name} avwrapper)
   283     add_dependencies(${engine_output_name} avwrapper)
   276 endif()
   284 endif()