diff options
author | Tuomo Pelkonen <tuomo.pelkonen@gmail.com> | 2021-01-20 15:18:03 +0200 |
---|---|---|
committer | Tuomo Pelkonen <tuomo.pelkonen@gmail.com> | 2021-01-27 13:16:44 +0200 |
commit | e2e20c9f1180476193baa32cf7a50252f35f01f3 (patch) | |
tree | 54871adbc899181d149eed413570c79b13058074 /tests/manual | |
parent | ff193e33d80a08ca0c21fdbccc2d63e6b7400d88 (diff) |
Add CMake build
Task-number: QTBUG-89299
Change-Id: I5becbf39605e566c3d32cb5e210d974df9de27da
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r-- | tests/manual/CMakeLists.txt | 18 | ||||
-rw-r--r-- | tests/manual/barstest/CMakeLists.txt | 22 | ||||
-rw-r--r-- | tests/manual/directional/CMakeLists.txt | 9 | ||||
-rw-r--r-- | tests/manual/galaxy/CMakeLists.txt | 12 | ||||
-rw-r--r-- | tests/manual/itemmodeltest/CMakeLists.txt | 8 | ||||
-rw-r--r-- | tests/manual/minimalbars/CMakeLists.txt | 8 | ||||
-rw-r--r-- | tests/manual/minimalscatter/CMakeLists.txt | 8 | ||||
-rw-r--r-- | tests/manual/minimalsurface/CMakeLists.txt | 8 | ||||
-rw-r--r-- | tests/manual/multigraphs/CMakeLists.txt | 20 | ||||
-rw-r--r-- | tests/manual/qmldynamicdata/CMakeLists.txt | 18 | ||||
-rw-r--r-- | tests/manual/qmlmultitest/CMakeLists.txt | 19 | ||||
-rw-r--r-- | tests/manual/qmlperf/CMakeLists.txt | 19 | ||||
-rw-r--r-- | tests/manual/qmlvolume/CMakeLists.txt | 20 | ||||
-rw-r--r-- | tests/manual/scattertest/CMakeLists.txt | 9 | ||||
-rw-r--r-- | tests/manual/surfacetest/CMakeLists.txt | 27 | ||||
-rw-r--r-- | tests/manual/volumetrictest/CMakeLists.txt | 25 |
16 files changed, 250 insertions, 0 deletions
diff --git a/tests/manual/CMakeLists.txt b/tests/manual/CMakeLists.txt new file mode 100644 index 00000000..66cd3967 --- /dev/null +++ b/tests/manual/CMakeLists.txt @@ -0,0 +1,18 @@ +if(TARGET Qt::Quick) + add_subdirectory(qmldynamicdata) + add_subdirectory(qmlmultitest) + add_subdirectory(qmlvolume) + add_subdirectory(qmlperf) +endif() +if(NOT ANDROID AND NOT IOS AND NOT WINRT) + add_subdirectory(barstest) + add_subdirectory(scattertest) + add_subdirectory(surfacetest) + add_subdirectory(multigraphs) + add_subdirectory(directional) + add_subdirectory(itemmodeltest) + add_subdirectory(volumetrictest) + add_subdirectory(minimalbars) + add_subdirectory(minimalscatter) + add_subdirectory(minimalsurface) +endif() diff --git a/tests/manual/barstest/CMakeLists.txt b/tests/manual/barstest/CMakeLists.txt new file mode 100644 index 00000000..f3d695d5 --- /dev/null +++ b/tests/manual/barstest/CMakeLists.txt @@ -0,0 +1,22 @@ +qt_add_executable(barstest + GUI + SOURCES + chart.cpp chart.h + custominputhandler.cpp custominputhandler.h + main.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) + +set(barstest_resource_files + "shuttle.obj" + "shuttle.png" +) + +qt_add_resource(barstest "barstest" + PREFIX + "/" + FILES + ${barstest_resource_files} +) diff --git a/tests/manual/directional/CMakeLists.txt b/tests/manual/directional/CMakeLists.txt new file mode 100644 index 00000000..4cb20b33 --- /dev/null +++ b/tests/manual/directional/CMakeLists.txt @@ -0,0 +1,9 @@ +qt_add_executable(directional + GUI + SOURCES + main.cpp + scatterdatamodifier.cpp scatterdatamodifier.h + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) diff --git a/tests/manual/galaxy/CMakeLists.txt b/tests/manual/galaxy/CMakeLists.txt new file mode 100644 index 00000000..3558ae72 --- /dev/null +++ b/tests/manual/galaxy/CMakeLists.txt @@ -0,0 +1,12 @@ +qt_add_executable(galaxy + GUI + EXCEPTIONS + SOURCES + cumulativedistributor.cpp cumulativedistributor.h + galaxydata.cpp galaxydata.h + main.cpp + star.cpp star.h + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) diff --git a/tests/manual/itemmodeltest/CMakeLists.txt b/tests/manual/itemmodeltest/CMakeLists.txt new file mode 100644 index 00000000..070ffe60 --- /dev/null +++ b/tests/manual/itemmodeltest/CMakeLists.txt @@ -0,0 +1,8 @@ +qt_add_executable(itemmodeltest + GUI + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) diff --git a/tests/manual/minimalbars/CMakeLists.txt b/tests/manual/minimalbars/CMakeLists.txt new file mode 100644 index 00000000..00a8732c --- /dev/null +++ b/tests/manual/minimalbars/CMakeLists.txt @@ -0,0 +1,8 @@ +qt_add_executable(MinimalBars + GUI + SOURCES + ../../../src/datavisualization/doc/snippets/doc_src_q3dbars_construction.cpp + PUBLIC_LIBRARIES + Qt::Gui + datavisualization +) diff --git a/tests/manual/minimalscatter/CMakeLists.txt b/tests/manual/minimalscatter/CMakeLists.txt new file mode 100644 index 00000000..12337ac7 --- /dev/null +++ b/tests/manual/minimalscatter/CMakeLists.txt @@ -0,0 +1,8 @@ +qt_add_executable(MinimalScatter + GUI + SOURCES + ../../../src/datavisualization/doc/snippets/doc_src_q3dscatter_construction.cpp + PUBLIC_LIBRARIES + Qt::Gui + datavisualization +) diff --git a/tests/manual/minimalsurface/CMakeLists.txt b/tests/manual/minimalsurface/CMakeLists.txt new file mode 100644 index 00000000..acd972a5 --- /dev/null +++ b/tests/manual/minimalsurface/CMakeLists.txt @@ -0,0 +1,8 @@ +qt_add_executable(minimalSurface + GUI + SOURCES + ../../../src/datavisualization/doc/snippets/doc_src_q3dsurface_construction.cpp + PUBLIC_LIBRARIES + Qt::Gui + datavisualization +) diff --git a/tests/manual/multigraphs/CMakeLists.txt b/tests/manual/multigraphs/CMakeLists.txt new file mode 100644 index 00000000..c328d97b --- /dev/null +++ b/tests/manual/multigraphs/CMakeLists.txt @@ -0,0 +1,20 @@ +qt_add_executable(multigraphs + GUI + SOURCES + data.cpp data.h + main.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) + +set(multigraphs_resource_files + "australia.png" +) + +qt_add_resource(multigraphs "multigraphs" + PREFIX + "/" + FILES + ${multigraphs_resource_files} +) diff --git a/tests/manual/qmldynamicdata/CMakeLists.txt b/tests/manual/qmldynamicdata/CMakeLists.txt new file mode 100644 index 00000000..6586e6ba --- /dev/null +++ b/tests/manual/qmldynamicdata/CMakeLists.txt @@ -0,0 +1,18 @@ +qt_add_executable(qmldynamicdata + GUI + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +set(qmldynamicdata_resource_files + "qml/qmldynamicdata/main.qml" +) + +qt_add_resource(qmldynamicdata "qmldynamicdata" + PREFIX + "/" + FILES + ${qmldynamicdata_resource_files} +) diff --git a/tests/manual/qmlmultitest/CMakeLists.txt b/tests/manual/qmlmultitest/CMakeLists.txt new file mode 100644 index 00000000..2a24f78c --- /dev/null +++ b/tests/manual/qmlmultitest/CMakeLists.txt @@ -0,0 +1,19 @@ +qt_add_executable(qmlmultitest + GUI + SOURCES + main.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +set(qmlmultitest_resource_files + "qml/qmlmultitest/Data.qml" + "qml/qmlmultitest/main.qml" +) + +qt_add_resource(qmlmultitest "qmlmultitest" + PREFIX + "/" + FILES + ${qmlmultitest_resource_files} +) diff --git a/tests/manual/qmlperf/CMakeLists.txt b/tests/manual/qmlperf/CMakeLists.txt new file mode 100644 index 00000000..666f279f --- /dev/null +++ b/tests/manual/qmlperf/CMakeLists.txt @@ -0,0 +1,19 @@ +qt_add_executable(qmlperf + GUI + SOURCES + datagenerator.cpp datagenerator.h + main.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +set(qmlperf_resource_files + "qml/qmlperf/main.qml" +) + +qt_add_resource(qmlperf "qmlperf" + PREFIX + "/" + FILES + ${qmlperf_resource_files} +) diff --git a/tests/manual/qmlvolume/CMakeLists.txt b/tests/manual/qmlvolume/CMakeLists.txt new file mode 100644 index 00000000..e18dc620 --- /dev/null +++ b/tests/manual/qmlvolume/CMakeLists.txt @@ -0,0 +1,20 @@ +qt_add_executable(qmlvolume + GUI + SOURCES + datasource.cpp datasource.h + main.cpp + PUBLIC_LIBRARIES + Qt::Gui + datavisualization +) + +set(qmlvolume_resource_files + "qml/qmlvolume/main.qml" +) + +qt_add_resource(qmlvolume "qmlvolume" + PREFIX + "/" + FILES + ${qmlvolume_resource_files} +) diff --git a/tests/manual/scattertest/CMakeLists.txt b/tests/manual/scattertest/CMakeLists.txt new file mode 100644 index 00000000..614dd1d3 --- /dev/null +++ b/tests/manual/scattertest/CMakeLists.txt @@ -0,0 +1,9 @@ +qt_add_executable(scattertest + GUI + SOURCES + main.cpp + scatterchart.cpp scatterchart.h + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) diff --git a/tests/manual/surfacetest/CMakeLists.txt b/tests/manual/surfacetest/CMakeLists.txt new file mode 100644 index 00000000..27539f88 --- /dev/null +++ b/tests/manual/surfacetest/CMakeLists.txt @@ -0,0 +1,27 @@ +qt_add_executable(surfacetest + GUI + SOURCES + graphmodifier.cpp graphmodifier.h + main.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) + +set_source_files_properties("Heightmap.png" + PROPERTIES QT_RESOURCE_ALIAS "map" +) +set_source_files_properties("mapimage.png" + PROPERTIES QT_RESOURCE_ALIAS "mapimage" +) +set(surfacetest_resource_files + "Heightmap.png" + "mapimage.png" +) + +qt_add_resource(surfacetest "surfacetest" + PREFIX + "/maps" + FILES + ${surfacetest_resource_files} +) diff --git a/tests/manual/volumetrictest/CMakeLists.txt b/tests/manual/volumetrictest/CMakeLists.txt new file mode 100644 index 00000000..d0fd8dde --- /dev/null +++ b/tests/manual/volumetrictest/CMakeLists.txt @@ -0,0 +1,25 @@ +qt_add_executable(volumetrictest + GUI + SOURCES + main.cpp + volumetrictest.cpp volumetrictest.h + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) + +set_source_files_properties("cubeFilledFlat.obj" + PROPERTIES QT_RESOURCE_ALIAS "mesh" +) +set(volumetrictest_resource_files + "cubeFilledFlat.obj" + "logo.png" + "logo_no_padding.png" +) + +qt_add_resource(volumetrictest "volumetrictest" + PREFIX + "/" + FILES + ${volumetrictest_resource_files} +) |