Commit a3479233 authored by Marco Bubke's avatar Marco Bubke

Use one sub project for evey seminar

parent 42bab120
QT += core network testlib
CONFIG += console c++1z testcase object_parallel_to_source
CONFIG -= app_bundle shared
include(gmock_dependency.pri)
include(benchmark_dependency.pri)
OBJECTS_DIR = $$OUT_PWD/obj # workaround for qmake bug in object_parallel_to_source
QMAKE_CXXFLAGS += -fno-omit-frame-pointer -mtune=broadwell
DEFINES += \
UNIT_TESTS
debug:DEFINES += NDEBUG
SOURCES += \
source/cppseminar-main.cpp \
source/sorting-benchmark.cpp \
source/polymorphism-benchmark.cpp
HEADERS += \
source/googletest.h
TEMPLATE = subdirs
SUBDIRS = \
polymorphism \
sorting
include(../shared/benchmark.pri)
TARGET = polymorphism
SOURCES += \
polymorphism-benchmark.cpp
......@@ -23,18 +23,13 @@
**
****************************************************************************/
#include "googletest.h"
#include <benchmark/benchmark.h>
int main(int argc, char *argv[])
{
testing::InitGoogleTest(&argc, argv);
benchmark::Initialize(&argc, argv);
int testsHaveErrors = RUN_ALL_TESTS();
benchmark::RunSpecifiedBenchmarks();
return testsHaveErrors;
return 0;
}
include(benchmark_dependency.pri)
include(seminar-common.pri)
QMAKE_CXXFLAGS += -fno-omit-frame-pointer -mtune=broadwell
debug:DEFINES += NDEBUG
SOURCES += \
$$PWD/benchmark-main.cpp
GOOGLEBENCHMARK_DIR = $$PWD/benchmark
GOOGLEBENCHMARK_DIR = $$PWD/../benchmark
INCLUDEPATH += $$GOOGLEBENCHMARK_DIR/include
......
GOOGTEST_DIRECTORY = $$PWD/googletest
GOOGTEST_DIRECTORY = $$PWD/../googletest
GTEST_INCLUDE_DIR = $$GOOGTEST_DIRECTORY/googletest
GMOCK_INCLUDE_DIR = $$GOOGTEST_DIRECTORY/googlemock
GTEST_SRC_DIR = $$GTEST_INCLUDE_DIR
......
QT += core network
CONFIG += console c++1z object_parallel_to_source
CONFIG -= app_bundle shared
OBJECTS_DIR = $$OUT_PWD/obj # workaround for qmake bug in object_parallel_to_source
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#include "googletest.h"
int main(int argc, char *argv[])
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
include(gmock_dependency.pri)
include(seminar-common.pri)
QT += testlib
CONFIG += testcase
DEFINES += \
UNIT_TESTS
INCLUDEPATH += $$PWD
SOURCES += \
$$PWD/test-main.cpp
HEADERS += \
$$PWD/googletest.h
include(../shared/benchmark.pri)
TARGET = sorting
SOURCES += \
polymorphism-benchmark.cpp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment