diff options
Diffstat (limited to 'examples/widgets/painting/composition/CMakeLists.txt')
-rw-r--r-- | examples/widgets/painting/composition/CMakeLists.txt | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/examples/widgets/painting/composition/CMakeLists.txt b/examples/widgets/painting/composition/CMakeLists.txt index 6d12f8a899..8192439737 100644 --- a/examples/widgets/painting/composition/CMakeLists.txt +++ b/examples/widgets/painting/composition/CMakeLists.txt @@ -37,11 +37,17 @@ target_include_directories(composition PUBLIC ../shared ) +# special case begin +if(NOT TARGET painting_shared::painting_shared) + add_subdirectory(../shared painting_shared) +endif() +# special case end + target_link_libraries(composition PUBLIC Qt::Core Qt::Gui Qt::Widgets - painting_shared # special case + painting_shared::painting_shared # special case ) @@ -211,15 +217,18 @@ qt6_add_resources(composition "composition" ${composition_resource_files} ) -if(QT_FEATURE_opengl) - target_sources(composition PUBLIC - ../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h - ) +# special case begin +# remove files from ../shared +#if(QT_FEATURE_opengl) + #target_sources(affine PUBLIC + #../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h + #) - target_link_libraries(composition PUBLIC - Qt::OpenGL - ) -endif() + #target_link_libraries(affine PUBLIC + #Qt::OpenGL + #) +#endif() +# special case end install(TARGETS composition RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" |