add:增加Audio子目录及对应的库

This commit is contained in:
DoubleX69 2021-06-28 17:51:58 +08:00
parent 0263bb9b50
commit d4b3036446

View File

@ -49,6 +49,8 @@ endif()
aux_source_directory(. TEST_SRC_LIST)
#ffmpeg/libavcodec ffmpeg/libavcodec SDL test_player
if(SDL2_FOUND AND AVCODEC_FOUND AND AVUTIL_FOUND)
add_subdirectory(Audio)
list(APPEND LINK_LIB_LIST audioPlayer )
else()
message(STATUS "test_player ingored, please install sdl2 ffmpeg/libavcodec ffmpeg/libavutil")
list(REMOVE_ITEM TEST_SRC_LIST ./test_player.cpp)