equal
deleted
inserted
replaced
150 COMMAND "${pascal_compiler}" |
150 COMMAND "${pascal_compiler}" |
151 ARGS ${pascal_compiler_flags} |
151 ARGS ${pascal_compiler_flags} |
152 MAIN_DEPENDENCY ${hwengine_project} |
152 MAIN_DEPENDENCY ${hwengine_project} |
153 DEPENDS ${engine_sources} |
153 DEPENDS ${engine_sources} |
154 ) |
154 ) |
|
155 |
|
156 add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars") |
|
157 add_dependencies(${engine_output_name} ENGINECLEAN) |
155 ELSE() |
158 ELSE() |
156 #let's build sdlmain, which is absent from the framework |
159 #let's build sdlmain, which is absent from the framework |
157 find_package(SDL REQUIRED) |
160 find_package(SDL REQUIRED) |
158 |
161 |
159 set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) |
162 set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) |
181 ) |
184 ) |
182 ENDIF() |
185 ENDIF() |
183 |
186 |
184 |
187 |
185 add_custom_target(${engine_output_name} ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}") |
188 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") |
|
187 add_dependencies(${engine_output_name} ENGINECLEAN) |
|
188 |
189 |
189 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir}) |
190 install(PROGRAMS "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}${CMAKE_EXECUTABLE_SUFFIX}" DESTINATION ${target_dir}) |
190 |
191 |