CMake build system: Depend QmlProjectManager tests on configuration

Don't build QmlProjectManager tests if the QmlProjectManager plugin is
disbled in the configuration.

Change-Id: I354a23567528d02ba9d4207202800ff0175d9a6b
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Alessandro Portale
2019-12-21 21:53:55 +01:00
parent 6a54209762
commit a766d89b40

View File

@@ -1,3 +1,7 @@
if (NOT TARGET QmlProjectManager)
return()
endif()
get_target_property(QmlProjectManagerSources QmlProjectManager SOURCES)
foreach(source IN LISTS QmlProjectManagerSources)
if (source MATCHES "fileformat")