if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/../../lib/libpng16.a")
    set(PNG_LIBRARY_RELEASE "${CMAKE_CURRENT_LIST_DIR}/../../lib/libpng16.a" CACHE FILEPATH "")
elseif(EXISTS "${CMAKE_CURRENT_LIST_DIR}/../../lib/libpng16${CMAKE_SHARED_LIBRARY_SUFFIX}")
    set(PNG_LIBRARY_RELEASE "${CMAKE_CURRENT_LIST_DIR}/../../lib/libpng16${CMAKE_SHARED_LIBRARY_SUFFIX}" CACHE FILEPATH "")
endif()
_find_package(${ARGS})
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
    list(APPEND PNG_LIBRARIES m)
    target_link_libraries(PNG::PNG INTERFACE m)
endif()
