波纹效果
# Copyright (C) 2023 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause cmake_minimum_required(VERSION 3.16) project(wiggly LANGUAGES CXX) if(NOT DEFINED INSTALL_EXAMPLESDIR) set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quickeffectmaker/${PROJECT_NAME}") find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick) qt_standard_project_setup() qt_add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE main.cpp ) target_link_libraries(${PROJECT_NAME} PRIVATE Qt::Core Qt::Gui Qt::Qml Qt::Quick ) # Resources: qt_add_resources(qml qml.qrc) target_sources(${PROJECT_NAME} PRIVATE ${qml}) install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" )