mirror of https://github.com/qt/qtgraphs.git
42 lines
1013 B
CMake
42 lines
1013 B
CMake
|
|
# 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(qmlheightmap
|
||
|
|
GUI
|
||
|
|
SOURCES
|
||
|
|
main.cpp
|
||
|
|
)
|
||
|
|
target_link_libraries(qmlheightmap PUBLIC
|
||
|
|
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(qmlheightmap "qmlheightmap"
|
||
|
|
PREFIX
|
||
|
|
"/"
|
||
|
|
FILES
|
||
|
|
${qmlheightmap_resource_files}
|
||
|
|
)
|