qtgraphs/tests/manual/qmlheightmap/CMakeLists.txt

42 lines
1.0 KiB
CMake
Raw Normal View History

2023-03-02 13:45:23 +00:00
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
set(CMAKE_INCLUDE_CURRENT_DIR ON)
qt_internal_add_manual_test(tst_qmlheightmap
2023-03-02 13:45:23 +00:00
GUI
SOURCES
main.cpp
)
target_link_libraries(tst_qmlheightmap PUBLIC
2023-03-02 13:45:23 +00:00
Qt::Gui
Qt::Graphs
)
set_source_files_properties("gradientGRAY8.png"
PROPERTIES QT_RESOURCE_ALIAS "mapGRAY8"
)
set_source_files_properties("gradientGRAY16.png"
PROPERTIES QT_RESOURCE_ALIAS "mapGRAY16"
)
set_source_files_properties("gradientRGB8.png"
PROPERTIES QT_RESOURCE_ALIAS "mapRGB8"
)
set_source_files_properties("gradientRGB16.png"
PROPERTIES QT_RESOURCE_ALIAS "mapRGB16"
)
set(qmlheightmap_resource_files
"qml/qmlheightmap/main.qml"
"gradientGRAY8.png"
"gradientGRAY16.png"
"gradientRGB8.png"
"gradientRGB16.png"
)
qt_internal_add_resource(tst_qmlheightmap "qmlheightmap"
2023-03-02 13:45:23 +00:00
PREFIX
"/"
FILES
${qmlheightmap_resource_files}
)