hedgewars/CMakeLists.txt
branch0.9.20
changeset 9924 aa7e7544ae41
parent 9916 e244445d0750
child 9950 2759212a27de
child 9959 1a42d36f346a
equal deleted inserted replaced
9922:58dee07f7552 9924:aa7e7544ae41
   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})