add support for ugoira

add progress bar
This commit is contained in:
2022-03-19 17:14:53 +08:00
parent 8ef00def87
commit 0ddcd7d533
31 changed files with 1823 additions and 175 deletions

View File

@@ -9,20 +9,25 @@ function(get_link_libraries OUTPUT_LIST TARGET)
set(LIB_FILES "")
foreach(LIB ${LIBS})
if (TARGET ${LIB})
get_target_property(LIB_IMPORTED ${LIB} IMPORTED)
list(FIND VISITED_TARGETS ${LIB} VISITED)
if (${VISITED} EQUAL -1)
get_target_property(LIB_FILE ${LIB} LOCATION)
if (NOT LIB_FILE)
get_target_property(LIB_FILE ${LIB} IMPORTED_LOCATION)
if (LIB_IMPORTED)
get_target_property(LIB_FILE ${LIB} LOCATION)
if (NOT LIB_FILE)
get_target_property(LIB_FILE ${LIB} IMPORTED_LOCATION)
endif()
if (NOT LIB_FILE)
get_target_property(LIB_FILE ${LIB} IMPORTED_IMPLIB)
endif()
if (NOT LIB_FILE)
get_target_property(LIB_FILE ${LIB} INTERFACE_LINK_LIBRARIES)
endif()
get_link_libraries(LINK_LIB_FILES ${LIB})
list(APPEND LIB_FILES ${LIB_FILE} ${LINK_LIB_FILES})
else()
list(APPEND LIB_FILES ${LIB})
endif()
if (NOT LIB_FILE)
get_target_property(LIB_FILE ${LIB} IMPORTED_IMPLIB)
endif()
if (NOT LIB_FILE)
get_target_property(LIB_FILE ${LIB} INTERFACE_LINK_LIBRARIES)
endif()
get_link_libraries(LINK_LIB_FILES ${LIB})
list(APPEND LIB_FILES ${LIB_FILE} ${LINK_LIB_FILES})
endif()
endif()
endforeach()