libsuperderpy/cmake/FlacToOgg.cmake

7 lines
252 B
CMake
Raw Normal View History

file(GLOB_RECURSE FLAC_FILES RELATIVE ${DATADIR} ${DATADIR}/*.flac)
foreach(file IN LISTS FLAC_FILES)
2017-09-09 00:59:23 +02:00
execute_process(COMMAND oggenc -Q -b 192 --resample 44100 ${file} WORKING_DIRECTORY ${DATADIR})
file(REMOVE ${DATADIR}/${file})
endforeach(file)