share/hedgewars/Data/Music/CMakeLists.txt
changeset 782 e2d2b84aa776
parent 564 17fb45c670c1
child 1097 06b15817b8a0
equal deleted inserted replaced
781:4101f0f1c0b9 782:e2d2b84aa776
     1 file(GLOB BaseMusic *.ogg) 
     1 file(GLOB BaseMusic *.ogg) 
     2 
     2 
     3 list(LENGTH BaseMusic PlayListLength)
     3 list(LENGTH BaseMusic PlayListLength)
     4 
     4 
     5 set(PlayListINCFile ${hedgewars_SOURCE_DIR}/hedgewars/playlist.inc)
     5 set(PlayListINCFile ${CMAKE_BINARY_DIR}/hedgewars/playlist.inc)
     6 
     6 
     7 file(WRITE ${PlayListINCFile} "const cPlayListLength = " ${PlayListLength} ";")
     7 file(WRITE ${PlayListINCFile} "const cPlayListLength = " ${PlayListLength} ";")
     8 
     8 
     9 if(PlayListLength GREATER 0)
     9 if(PlayListLength GREATER 0)
    10 	file(APPEND ${PlayListINCFile} "{$DEFINE HAVE_MUSIC}")
    10 	file(APPEND ${PlayListINCFile} "{$DEFINE HAVE_MUSIC}")