diff --git a/CMakeLists.txt b/CMakeLists.txt index 8dce83339..66f397df0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,11 +93,13 @@ add_subdirectory(src/plugins/stockencoders) if (${FFMPEG_DECODER} MATCHES "true") add_subdirectory(src/plugins/ffmpegdecoder) + add_dependencies(musikcube ffmpegdecoder) else() add_subdirectory(src/plugins/m4adecoder) add_subdirectory(src/plugins/oggdecoder) add_subdirectory(src/plugins/nomaddecoder) add_subdirectory(src/plugins/flacdecoder) + add_dependencies(musikcube m4adecoder oggdecoder nomaddecoder flacdecoder) endif() add_dependencies(taglibreader taglib) @@ -203,4 +205,4 @@ endif() # to file glob in. these won't be picked up on the initial build because # they don't yet exist! add_custom_target(postbuild ALL DEPENDS musikcube) -add_custom_command(TARGET postbuild POST_BUILD COMMAND cmake .) \ No newline at end of file +add_custom_command(TARGET postbuild POST_BUILD COMMAND cmake .)