CMakeLists.txt
changeset 999 1a87fe70802d
parent 935 c52db177a8bd
child 1003 327b4537dce9
     1.1 --- a/CMakeLists.txt	Mon Nov 18 18:50:50 2019 +0300
     1.2 +++ b/CMakeLists.txt	Tue Nov 19 12:36:40 2019 +0300
     1.3 @@ -4,7 +4,6 @@
     1.4  
     1.5  if (ANDROID)
     1.6  
     1.7 -
     1.8      # FIXME: missing CMakeLists.txt for MPG123
     1.9      set(SUPPORT_MP3_MPG123 OFF CACHE BOOL "" FORCE)
    1.10  
    1.11 @@ -14,14 +13,20 @@
    1.12      option(SUPPORT_MOD_MODPLUG "Support loading MOD music via modplug" OFF)
    1.13      option(SUPPORT_MID_TIMIDITY "Support TiMidity" OFF)
    1.14  
    1.15 +    include_directories(include src src/codecs)
    1.16 +
    1.17      add_library(SDL2_mixer SHARED)
    1.18  
    1.19      target_sources(SDL2_mixer PRIVATE
    1.20 -            effect_position.c effects_internal.c
    1.21 -            effect_stereoreverse.c load_aiff.c load_voc.c mixer.c music.c
    1.22 -            music_cmd.c music_flac.c music_fluidsynth.c music_mad.c
    1.23 -            music_mikmod.c music_modplug.c music_mpg123.c music_nativemidi.c
    1.24 -            music_ogg.c music_opus.c music_timidity.c music_wav.c)
    1.25 +            src/effect_position.c src/effects_internal.c src/effect_stereoreverse.c
    1.26 +            src/mixer.c src/music.c
    1.27 +            src/codecs/load_aiff.c src/codecs/load_voc.c
    1.28 +            src/codecs/music_cmd.c src/codecs/music_flac.c
    1.29 +            src/codecs/music_fluidsynth.c src/codecs/music_mad.c
    1.30 +            src/codecs/music_mikmod.c src/codecs/music_modplug.c
    1.31 +            src/codecs/music_mpg123.c src/codecs/music_nativemidi.c
    1.32 +            src/codecs/music_ogg.c src/codecs/music_opus.c
    1.33 +            src/codecs/music_timidity.c src/codecs/music_wav.c)
    1.34  
    1.35      if (SUPPORT_FLAC)
    1.36          add_definitions(-DMUSIC_FLAC)