hedgewars/CMakeLists.txt
branchcmake_pascal
changeset 8787 f9dc079f2aa6
parent 8775 3cad01db0bae
child 8790 783669d76b4f
equal deleted inserted replaced
8784:c11727e5fa3f 8787:f9dc079f2aa6
   173     get_filename_component(PNG_LIB_DIR ${PNG_LIBRARY} PATH)
   173     get_filename_component(PNG_LIB_DIR ${PNG_LIBRARY} PATH)
   174     add_definitions(-dPNG_SCREENSHOTS)
   174     add_definitions(-dPNG_SCREENSHOTS)
   175     add_flag_append(CMAKE_Pascal_FLAGS -Fl${PNG_LIB_DIR})
   175     add_flag_append(CMAKE_Pascal_FLAGS -Fl${PNG_LIB_DIR})
   176 endif()
   176 endif()
   177 
   177 
       
   178 if(NOT LUA_FOUND)
       
   179     #linking with liblua.a requires system readline
       
   180     add_flag_append(CMAKE_Pascal_FLAGS "-k${EXECUTABLE_OUTPUT_PATH}/lib${LUA_LIBRARY}.a -k-lreadline")
       
   181 endif()
       
   182 
   178 if(NOT PHYSFS_FOUND)
   183 if(NOT PHYSFS_FOUND)
   179     #-XLA is a beta fpc flag that renames libraries before passing them to the linker
   184     #-XLA is a beta fpc flag that renames libraries before passing them to the linker
   180     #we also have to pass PHYSFS_INTERNAL to satisfy windows runtime requirements
   185     #we also have to pass PHYSFS_INTERNAL to satisfy windows runtime requirements
   181     #(should be harmless on other platforms)
   186     #(should be harmless on other platforms)
   182     add_flag_append(CMAKE_Pascal_FLAGS "-XLAphysfs=${physfs_output_name}")
   187     add_flag_append(CMAKE_Pascal_FLAGS "-XLAphysfs=${physfs_output_name}")