CMake: Fix examples/widgets/painting/shared library
This library deliberately links PUBLICly against Qt6::Widgets and
Qt6::OpenGL. Same for the target_include_directories call.
This partially reverts a5de12f0d7
.
This fixes the builds of examples using this library.
Change-Id: I2b5791044afc82e71df4a3bbfc26e5b1ab9afa76
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
732d073351
commit
c682d78ac2
@ -11,15 +11,15 @@ target_sources(painting_shared PRIVATE
|
||||
${moc_files}
|
||||
)
|
||||
|
||||
target_link_libraries(painting_shared PRIVATE Qt6::Widgets)
|
||||
target_include_directories(painting_shared PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
target_link_libraries(painting_shared PUBLIC Qt6::Widgets)
|
||||
target_include_directories(painting_shared PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
if (TARGET Qt6::OpenGL OR QT_FEATURE_opengles2)
|
||||
target_compile_definitions(painting_shared PRIVATE QT_OPENGL_SUPPORT)
|
||||
target_link_libraries(painting_shared PRIVATE
|
||||
target_link_libraries(painting_shared PUBLIC
|
||||
Qt6::OpenGL
|
||||
)
|
||||
qt6_wrap_cpp(moc_files_gl fbopaintdevice.h) # no automoc for OBJECT libs
|
||||
|
Loading…
Reference in New Issue
Block a user