qt5base-lts/tests/auto/gui/itemmodels/CMakeLists.txt
Alexandru Croitor 9ce8281417 Fix tests to build in a no-widgets configuration
The qfilesystemmodel.pro was recently moved to the gui tests subfolder,
but it uses widgets inside. Skip it in a no-widgets build.

Amends fb9ec8ad44

Task-number: QTBUG-86187
Change-Id: I955556ffddad483d4c25602ae126b8c2433091b2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-09-15 15:55:47 +02:00

10 lines
222 B
CMake

# Generated from itemmodels.pro.
add_subdirectory(qstandarditem)
if(TARGET Qt::Widgets)
add_subdirectory(qstandarditemmodel)
endif()
if(TARGET Qt::Widgets AND NOT MINGW)
add_subdirectory(qfilesystemmodel)
endif()