diff options
Diffstat (limited to 'tests/auto/CMakeLists.txt')
-rw-r--r-- | tests/auto/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt index 2227e6e46..1e5c1f6bd 100644 --- a/tests/auto/CMakeLists.txt +++ b/tests/auto/CMakeLists.txt @@ -12,6 +12,7 @@ if(QT_FEATURE_qtwebengine_widgets_build OR (QT_BUILD_STANDALONE_TESTS AND TARGET Qt::WebEngineWidgets)) add_subdirectory(widgets) endif() -#if(QT_FEATURE_build_qtpdf AND QT_FEATURE_webengine_qtpdf_support) -# add_subdirectory(pdf) -#endif() +if(QT_FEATURE_qtpdf_build + OR (QT_BUILD_STANDALONE_TESTS AND TARGET Qt::Pdf)) + add_subdirectory(pdf) +endif() |