We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df1fa27 commit 991b69cCopy full SHA for 991b69c
src/CMakeLists.txt
@@ -85,6 +85,11 @@ add_library(ads::${library_name} ALIAS ${library_name})
85
target_link_libraries(${library_name} PUBLIC Qt${QT_VERSION_MAJOR}::Core
86
Qt${QT_VERSION_MAJOR}::Gui
87
Qt${QT_VERSION_MAJOR}::Widgets)
88
+
89
+if(QT_VERSION_MAJOR STREQUAL "6")
90
+ target_link_libraries(${library_name} PRIVATE Qt6::GuiPrivate) #needed for <qpa/qplatformnativeinterface.h>
91
+endif()
92
93
if (UNIX AND NOT APPLE)
94
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
95
find_package(X11 REQUIRED)
0 commit comments