hedgewars/CMakeLists.txt
branchcmake_pascal
changeset 8827 f53dfd8e0432
parent 8825 9f8d146e9335
child 8837 b9a15738711e
equal deleted inserted replaced
8825:9f8d146e9335 8827:f53dfd8e0432
   177     endif()
   177     endif()
   178 
   178 
   179     #workaround for missing <TARGET> support during object generation
   179     #workaround for missing <TARGET> support during object generation
   180     set(engine_output_name "${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}")
   180     set(engine_output_name "${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}")
   181     set(destination_dir ${target_library_install_dir})
   181     set(destination_dir ${target_library_install_dir})
   182     add_flags_prepend(CMAKE_Pascal_FLAGS "-o${LIBRARY_OUTPUT_PATH}/${engine_output_name}")
   182     add_flag_prepend(CMAKE_Pascal_FLAGS "-o${LIBRARY_OUTPUT_PATH}/${engine_output_name}")
   183 
   183 
   184     add_definitions(-dHWLIBRARY)
   184     add_definitions(-dHWLIBRARY)
   185     add_library(hwengine SHARED ${engine_sources} hwLibrary.pas)
   185     add_library(hwengine SHARED ${engine_sources} hwLibrary.pas)
   186 else()
   186 else()
   187     # no need to change name here because target has same name
   187     # no need to change name here because target has same name