From db25a067b0e1b5905e9cd3316df45f2be1b44594 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 17 May 2021 14:09:37 +0200 Subject: 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 --- examples/widgets/painting/affine/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/widgets/painting/affine') diff --git a/examples/widgets/painting/affine/CMakeLists.txt b/examples/widgets/painting/affine/CMakeLists.txt index c3323693b8..cd264e6be4 100644 --- a/examples/widgets/painting/affine/CMakeLists.txt +++ b/examples/widgets/painting/affine/CMakeLists.txt @@ -39,7 +39,7 @@ target_include_directories(affine 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 -- cgit v1.2.3