More CMakeLists.txt dependency fixes

This commit is contained in:
casey langen 2018-01-15 22:52:17 +00:00
parent 2d2b721072
commit 765ba61ac2

View File

@ -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 .)
add_custom_command(TARGET postbuild POST_BUILD COMMAND cmake .)