diff options
Diffstat (limited to 'tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/CMakeLists.txt')
-rw-r--r-- | tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/CMakeLists.txt | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/CMakeLists.txt b/tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/CMakeLists.txt index ec52626e2d..808d4e435c 100644 --- a/tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/CMakeLists.txt +++ b/tests/libfuzzer/gui/painting/qcolorspace/fromiccprofile/CMakeLists.txt @@ -1,30 +1,35 @@ -# Generated from fromiccprofile.pro. +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause -##################################################################### -## fromiccprofile Binary: -##################################################################### +cmake_minimum_required(VERSION 3.16) +project(fromiccprofile LANGUAGES CXX) -qt_add_executable(fromiccprofile - GUI - SOURCES - main.cpp - PUBLIC_LIBRARIES - Qt::Gui -) +set(CMAKE_INCLUDE_CURRENT_DIR ON) -#### Keys ignored in scope 1:.:.:fromiccprofile.pro:<TRUE>: -# FUZZ_ENGINE = "$$(LIB_FUZZING_ENGINE)" -# QTPLUGIN = "qminimal" +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) -## Scopes: -##################################################################### +find_package(Qt6 REQUIRED COMPONENTS Core Gui) -qt_extend_target(fromiccprofile CONDITION FUZZ_ENGINE_ISEMPTY - LINK_OPTIONS - "-fsanitize=fuzzer" +qt_add_executable(fromiccprofile + main.cpp ) -qt_extend_target(fromiccprofile CONDITION NOT FUZZ_ENGINE_ISEMPTY - PUBLIC_LIBRARIES +target_link_libraries(fromiccprofile PUBLIC + Qt::Core + Qt::Gui +) +if(DEFINED ENV{LIB_FUZZING_ENGINE}) + target_link_libraries(fromiccprofile PRIVATE $ENV{LIB_FUZZING_ENGINE} + ) +else() + target_link_libraries(fromiccprofile PRIVATE + -fsanitize=fuzzer + ) +endif() + +qt_import_plugins(fromiccprofile + INCLUDE Qt::QMinimalIntegrationPlugin ) |