summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_add_binary_resources_delayed_file/main.cpp
blob: 46f4f1028d8187f514515bea76b1d8b8397285dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2015 André Klitzing <aklitzing@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include <QFile>
#include <QResource>

int main(int argc, char **argv)
{
    if (QResource::registerResource("rcc_file.rcc") &&
        QFile::exists("://resource_file.txt") && QFile::exists("://resource_file_two.txt"))
    {
        return 0;
    }

    return -1;
}