CMake: Make the plugandpaint example runnable without installation

The extrafilters DLL must be placed in the plugins directory to be
found. The QMake build is correct in that regard.

Change-Id: Ic1652e008148f3dfa36558b82d8bc8ddb08c1e99
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Joerg Bornemann 2025-04-02 09:07:49 +02:00
parent bfb7a47e13
commit 4422480260

View File

@ -7,7 +7,7 @@ qt_add_plugin(pnp_extrafilters
)
set_target_properties(pnp_extrafilters PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/app"
LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/plugins"
)
target_include_directories(pnp_extrafilters PRIVATE