project(audio)
set(SOUNDS
click_2.wav
click.wav
load.wav
misc_menu_2.wav
misc_menu_3.wav
misc_menu_4.wav
misc_menu.wav
misc_sound.wav
negative_2.wav
negative.wav
positive.wav
save.wav
sharp_echo.wav
)

set(DST_SOUNDS)
foreach(SOUND_FILE ${SOUNDS})
set(FILE_OUT ${CMAKE_CURRENT_BINARY_DIR}/${SOUND_FILE})
set(FILE_IN ${CMAKE_CURRENT_SOURCE_DIR}/${SOUND_FILE})
add_custom_command(OUTPUT ${FILE_OUT}
    COMMAND ${CMAKE_COMMAND} -E copy ${FILE_IN} ${FILE_OUT}
    DEPENDS ${FILE_IN}
)
list(APPEND DST_SOUNDS ${FILE_OUT})
endforeach()
add_custom_target(audio_data_gui ALL DEPENDS ${DST_SOUNDS})
