aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlprojectmanager/fileformat/CMakeLists.txt
blob: 5d7f7c79bf8ed4e6ee7c31ccbdc55555a9cf13dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
get_target_property(QmlProjectManagerSources QmlProjectManager SOURCES)
foreach(source IN LISTS QmlProjectManagerSources)
  if (source MATCHES "fileformat")
    list(APPEND fileformat_sources "${CMAKE_SOURCE_DIR}/src/plugins/qmlprojectmanager/${source}")
  endif()
endforeach()

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