CMakeLists.txt
changeset 934 c251a3a6a2df
parent 933 8b275092fdbb
child 935 c52db177a8bd
     1.1 --- a/CMakeLists.txt	Tue Aug 13 15:51:57 2019 +0200
     1.2 +++ b/CMakeLists.txt	Wed Aug 14 09:47:18 2019 +0200
     1.3 @@ -4,7 +4,10 @@
     1.4  
     1.5  if (ANDROID)
     1.6  
     1.7 -    # FIXME: there are missing CMakeLists.txt 
     1.8 +
     1.9 +    # FIXME: missing CMakeLists.txt for MPG123
    1.10 +    set(SUPPORT_MP3_MPG123 OFF CACHE BOOL "" FORCE)
    1.11 +
    1.12      option(SUPPORT_FLAC "Support loading FLAC music with libFLAC" OFF)
    1.13      option(SUPPORT_OGG "Support loading OGG Vorbis music via Tremor" OFF)
    1.14      option(SUPPORT_MP3_MPG123 "Support loading MP3 music via MPG123" OFF)
    1.15 @@ -23,14 +26,16 @@
    1.16      if (SUPPORT_FLAC)
    1.17          add_definitions(-DMUSIC_FLAC)
    1.18          add_subdirectory(external/flac-1.3.2)
    1.19 -        target_link_libraries(SDL_mixer PRIVATE libFLAC)
    1.20 +        include_directories(external/flac-1.3.2/include)
    1.21 +        target_link_libraries(SDL_mixer PRIVATE FLAC)
    1.22      endif()
    1.23  
    1.24      if (SUPPORT_OGG)
    1.25 -        add_definitions(-DMUSIC_OGG -DOGG_USE_TREMOR -DOGG_HEADER="<ivorbisfile.h>")
    1.26 +        add_definitions(-DMUSIC_OGG -DOGG_USE_TREMOR -DOGG_HEADER=<ivorbisfile.h>)
    1.27          add_subdirectory(external/libogg-1.3.2)
    1.28          add_subdirectory(external/libvorbisidec-1.2.1)
    1.29 -        target_link_libraries(SDL_mixer PRIVATE ogg vorbisidec)
    1.30 +        include_directories(external/libvorbisidec-1.2.1)
    1.31 +        target_link_libraries(SDL_mixer PRIVATE vorbisfile vorbisidec ogg)
    1.32      endif()
    1.33  
    1.34      if (SUPPORT_MP3_MPG123)
    1.35 @@ -40,8 +45,9 @@
    1.36      endif()
    1.37  
    1.38      if (SUPPORT_MOD_MODPLUG)
    1.39 -        add_definitions(-DMUSIC_MOD_MODPLUG -DMODPLUG_HEADER="<modplug.h>")
    1.40 +        add_definitions(-DMUSIC_MOD_MODPLUG -DMODPLUG_HEADER=<modplug.h>)
    1.41          add_subdirectory(external/libmodplug-0.8.9.0)
    1.42 +        include_directories(external/libmodplug-0.8.9.0/src)
    1.43          target_link_libraries(SDL_mixer PRIVATE modplug)
    1.44      endif()
    1.45