diff -r 213286baaee4 -r 06b15817b8a0 share/hedgewars/Data/Music/CMakeLists.txt --- a/share/hedgewars/Data/Music/CMakeLists.txt Fri Jul 25 19:06:46 2008 +0000 +++ b/share/hedgewars/Data/Music/CMakeLists.txt Fri Jul 25 19:26:44 2008 +0000 @@ -1,33 +1,5 @@ file(GLOB BaseMusic *.ogg) -list(LENGTH BaseMusic PlayListLength) - -set(PlayListINCFile ${CMAKE_BINARY_DIR}/hedgewars/playlist.inc) - -file(WRITE ${PlayListINCFile} "const cPlayListLength = " ${PlayListLength} ";") - -if(PlayListLength GREATER 0) - file(APPEND ${PlayListINCFile} "{$DEFINE HAVE_MUSIC}") - file(APPEND ${PlayListINCFile} "playlist: array[0..Pred(cPlayListLength)] of string = (") - - set(i ${PlayListLength}) - foreach(musicfile ${BaseMusic}) - math(EXPR i "${i} - 1") - - get_filename_component(relfilename ${musicfile} NAME) - - file(APPEND ${PlayListINCFile} '${relfilename}') - - if(i GREATER 0) - file(APPEND ${PlayListINCFile} ",") - endif(i GREATER 0) - endforeach(musicfile) - - file(APPEND ${PlayListINCFile} ");") - - file(APPEND ${PlayListINCFile} "var playlistchain: array[0..Pred(cPlayListLength)] of LongWord;") -endif(PlayListLength GREATER 0) - install(FILES ${BaseMusic} DESTINATION ${SHAREPATH}Data/Music)