C
Monitor: Verifying the Rendering Output
# Copyright (C) 2025 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial
# This file is part of the Qt Safe Renderer module
cmake_minimum_required(VERSION 3.16)
# OffscreenRenderer Library
project(GoldenCrcCalculator LANGUAGES C CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Find required Qt components
find_package(Qt6 REQUIRED COMPONENTS
Core # Needed only for QSR cmake configuration
SafeRenderer
SafePlatformAdaptation
SafeOutputVerifierAdaptation
SafeGraphicsAdaptation
SafeCalcCRCQCom
)
# Include directories
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# Source files
set(OFFSCREENRENDERER_SOURCES
goldencrccalculator.cpp
)
# Header files
set(OFFSCREENRENDERER_HEADERS
goldencrccalculator.h
offscreensurface.h
)
# Create the library
add_library(GoldenCrcCalculator STATIC
${OFFSCREENRENDERER_SOURCES}
${OFFSCREENRENDERER_HEADERS}
)
# Link libraries
target_link_libraries(GoldenCrcCalculator PUBLIC
Qt::SafeRenderer
Qt::SafePlatformAdaptation
Qt::SafeOutputVerifierAdaptation
Qt::SafeGraphicsAdaptation
Qt::SafeCalcCRCQCom
)