hedgewars/CMakeLists.txt
changeset 5843 8c5168e3194c
parent 5188 d0461bd6d45b
child 5867 a04f25c4209f
equal deleted inserted replaced
5842:30e374a27269 5843:8c5168e3194c
   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(CLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" WORKING_DIRECTORY "${hedgewars_SOURCE_DIR}/hedgewars")
       
   187 add_dependencies(${engine_output_name} CLEAN)
   186 
   188 
   187 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})
   189 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir})
   188 
   190