hedgewars/CMakeLists.txt
branchhedgeroid
changeset 6025 cac1d5601d7c
parent 5973 94abd65e7d4f
child 6131 4e8816cf9459
equal deleted inserted replaced
6023:a28be05b20bc 6025:cac1d5601d7c
   181         )
   181         )
   182 ENDIF()
   182 ENDIF()
   183 
   183 
   184 
   184 
   185 add_custom_target(${engine_output_name} ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}")
   185 add_custom_target(${engine_output_name} ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}")
   186 add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
   186 IF(NOT APPLE)
   187 add_dependencies(${engine_output_name} ENGINECLEAN)
   187     add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
       
   188     add_dependencies(${engine_output_name} ENGINECLEAN)
       
   189 ENDIF()
   188 
   190 
   189 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})
   191 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})
   190 
   192