diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-05-17 14:09:37 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2021-05-17 17:14:10 +0200 |
commit | db25a067b0e1b5905e9cd3316df45f2be1b44594 (patch) | |
tree | e81f4af249469b5651f4aacc79d250947414fe1f /examples/widgets/painting/pathstroke | |
parent | 536a4ab07988ccf52e071c5ab831069084b0cb71 (diff) |
Fix build of standalone painting examples
Since commit f5c69a51956 the examples/widgets/painting examples could
not be built standalone anymore.
Move the find_package calls out of the examples/widgets/painting/shared
subdirectory and add a .cmake file that can be included to use the
library conveniently.
Change-Id: I35cb5bd8419a67c782d109104c4a88d64477a8be
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/widgets/painting/pathstroke')
-rw-r--r-- | examples/widgets/painting/pathstroke/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/painting/pathstroke/CMakeLists.txt b/examples/widgets/painting/pathstroke/CMakeLists.txt index 17de61fede..feb3332897 100644 --- a/examples/widgets/painting/pathstroke/CMakeLists.txt +++ b/examples/widgets/painting/pathstroke/CMakeLists.txt @@ -39,7 +39,7 @@ target_include_directories(pathstroke PUBLIC # special case begin if(NOT TARGET painting_shared::painting_shared) - add_subdirectory(../shared painting_shared) + include(../shared/use_lib.cmake) endif() # special case end |