CMake: build the shared plugin when building the plugandpaint target
People expect that building the "main target" of an example builds all necessary subtargets as well. Add a dependency from plugandpaint to pnp_extrafilters. Pick-to: 6.5 Task-number: QTBUG-112300 Change-Id: I036beb961fe474ff060f93c98f5e2bda58e66f71 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
502a7706b9
commit
454b1de22c
@ -19,7 +19,11 @@ target_link_libraries(plugandpaint PRIVATE
|
||||
pnp_basictools
|
||||
)
|
||||
|
||||
if(NOT QT6_IS_SHARED_LIBS_BUILD)
|
||||
if(QT6_IS_SHARED_LIBS_BUILD)
|
||||
# Build the shared plugin too when building this example target.
|
||||
add_dependencies(plugandpaint pnp_extrafilters)
|
||||
else()
|
||||
# Link the extrafilters plugin if Qt is built statically.
|
||||
target_link_libraries(plugandpaint PRIVATE
|
||||
pnp_extrafilters
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user