hedgewars/CMakeLists.txt
changeset 9945 c4ae96531f8c
parent 9942 0562f28ccb7a
child 9950 2759212a27de
child 9959 1a42d36f346a
equal deleted inserted replaced
9944:9cd98ce10d65 9945:c4ae96531f8c
   195     set(destination_dir ${target_library_install_dir})
   195     set(destination_dir ${target_library_install_dir})
   196     add_flag_prepend(CMAKE_Pascal_FLAGS "-o${LIBRARY_OUTPUT_PATH}/${engine_output_name}")
   196     add_flag_prepend(CMAKE_Pascal_FLAGS "-o${LIBRARY_OUTPUT_PATH}/${engine_output_name}")
   197 
   197 
   198     add_definitions(-dHWLIBRARY)
   198     add_definitions(-dHWLIBRARY)
   199     set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
   199     set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar}")
       
   200     set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS hwengine.pas)
   200     add_library(hwengine SHARED hwLibrary.pas)
   201     add_library(hwengine SHARED hwLibrary.pas)
   201 else()
   202 else()
   202     # no need to change name here because target has same name
   203     # no need to change name here because target has same name
   203     set(engine_output_name "hwengine${CMAKE_EXECUTABLE_SUFFIX}")
   204     set(engine_output_name "hwengine${CMAKE_EXECUTABLE_SUFFIX}")
   204     set(destination_dir ${target_binary_install_dir})
   205     set(destination_dir ${target_binary_install_dir})