hedgewars/CMakeLists.txt
changeset 10174 710ffaae7d59
parent 10168 a2bf14203883
child 10181 4708343d5963
equal deleted inserted replaced
10173:fff5e4b0dfcb 10174:710ffaae7d59
   209     set(engine_output_name "${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}")
   209     set(engine_output_name "${CMAKE_SHARED_LIBRARY_PREFIX}hwengine${CMAKE_SHARED_LIBRARY_SUFFIX}")
   210     set(destination_dir ${target_library_install_dir})
   210     set(destination_dir ${target_library_install_dir})
   211     add_flag_prepend(CMAKE_Pascal_FLAGS "-o${LIBRARY_OUTPUT_PATH}/${engine_output_name}")
   211     add_flag_prepend(CMAKE_Pascal_FLAGS "-o${LIBRARY_OUTPUT_PATH}/${engine_output_name}")
   212 
   212 
   213     add_definitions(-dHWLIBRARY)
   213     add_definitions(-dHWLIBRARY)
   214     set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
   214     set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar};${CMAKE_CURRENT_SOURCE_DIR}/hwengine.pas")
   215     set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/hwengine.pas")
       
   216     add_library(hwengine SHARED hwLibrary.pas)
   215     add_library(hwengine SHARED hwLibrary.pas)
   217 else()
   216 else()
   218     # no need to change name here because target has same name
   217     # no need to change name here because target has same name
   219     set(engine_output_name "hwengine${CMAKE_EXECUTABLE_SUFFIX}")
   218     set(engine_output_name "hwengine${CMAKE_EXECUTABLE_SUFFIX}")
   220     set(destination_dir ${target_binary_install_dir})
   219     set(destination_dir ${target_binary_install_dir})