File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,10 +140,8 @@ message(STATUS "${PROJECT_NAME}: Required Qt components [${qt_required_component
140140find_package (Qt5 ${minimum_required_qt_version} COMPONENTS ${qt_required_components} REQUIRED )
141141
142142set (QT_LIBRARIES )
143- foreach (qtlib ${qt_required_components} )
144- include_directories (${Qt5${qtlib}_INCLUDE_DIRS} )
145- add_definitions (${Qt5${qtlib}_DEFINITIONS} )
146- list (APPEND QT_LIBRARIES ${Qt5${qtlib} _LIBRARIES})
143+ foreach (qt_component ${qt_required_components} )
144+ list (APPEND QT_LIBRARIES Qt5::${qt_component} )
147145endforeach ()
148146
149147macro (pythonqt_wrap_cpp )
@@ -325,8 +323,9 @@ target_include_directories(PythonQt
325323 )
326324
327325target_link_libraries (PythonQt
328- ${PYTHON_LIBRARY}
329- ${QT_LIBRARIES}
326+ PUBLIC
327+ ${PYTHON_LIBRARY}
328+ ${QT_LIBRARIES}
330329 )
331330
332331#-----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments