summaryrefslogtreecommitdiff
path: root/tests/auto/qml/qmlprojectmanager/fileformat/CMakeLists.txt
blob: 91800cd75ee431ae87bdcc20b8d89e2d6ebd1e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (NOT TARGET QmlProjectManager)
  return()
endif()

get_target_property(QmlProjectManagerSources QmlProjectManager SOURCES)
foreach(source IN LISTS QmlProjectManagerSources)
  if (source MATCHES "fileformat")
    list(APPEND fileformat_sources "${PROJECT_SOURCE_DIR}/src/plugins/qmlprojectmanager/${source}")
  endif()
endforeach()

add_qtc_test(tst_qml_fileformat
  DEPENDS QmlJS Utils
  INCLUDES "${PROJECT_SOURCE_DIR}/src/plugins/qmlprojectmanager/fileformat"
  DEFINES
    QT_CREATOR
    SRCDIR="${CMAKE_CURRENT_SOURCE_DIR}"
  SOURCES tst_fileformat.cpp ${fileformat_sources}
)