blob: 0b29c4e6d18150ac1a334fb7e7983384a9048712 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
cmake_minimum_required(VERSION 3.16)
project(fromjson LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 REQUIRED COMPONENTS Core)
qt_add_executable(fromjson
main.cpp
)
target_link_libraries(fromjson PUBLIC
Qt::Core
)
if(DEFINED ENV{LIB_FUZZING_ENGINE})
target_link_libraries(fromjson PRIVATE
$ENV{LIB_FUZZING_ENGINE}
)
else()
target_link_libraries(fromjson PRIVATE
-fsanitize=fuzzer
)
endif()
|