mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-17 13:37:18 +03:00
Make Qt plugin targets optional
This commit is contained in:
parent
d4788a9ff9
commit
ca8c58078c
@ -30,6 +30,10 @@ else()
|
||||
endif()
|
||||
|
||||
foreach(QT_PLUGIN ${QT_PLUGINS})
|
||||
if(NOT TARGET Qt5::${QT_PLUGIN})
|
||||
continue()
|
||||
endif()
|
||||
|
||||
get_target_property(PLUGIN Qt5::${QT_PLUGIN} LOCATION_${CMAKE_BUILD_TYPE})
|
||||
get_filename_component(FILE_NAME ${PLUGIN} NAME)
|
||||
get_filename_component(DIR ${PLUGIN} DIRECTORY)
|
||||
|
Loading…
Reference in New Issue
Block a user