# Copyright (c) 2026 Dominic Masters # # This software is released under the MIT License. # https://opensource.org/licenses/MIT # minimp3 has no tagged releases - pinned to a specific commit instead of a # branch for reproducibility. include(FetchContent) FetchContent_Declare( minimp3 GIT_REPOSITORY https://github.com/lieff/minimp3.git GIT_TAG ea99364f61c14656440e8d77e9c233ccf3124633 ) FetchContent_MakeAvailable(minimp3) set(MINIMP3_INCLUDE_DIR "${minimp3_SOURCE_DIR}") set(MINIMP3_HEADER "${minimp3_SOURCE_DIR}/minimp3.h") if(EXISTS "${MINIMP3_HEADER}") add_library(minimp3 INTERFACE) target_include_directories(minimp3 INTERFACE "${MINIMP3_INCLUDE_DIR}") set(minimp3_FOUND TRUE) else() set(minimp3_FOUND FALSE) endif() mark_as_advanced(MINIMP3_INCLUDE_DIR MINIMP3_HEADER)