官术网_书友最值得收藏!

cm-tests

Create new source/models subfolders and move client-tests.cpp there. Switch back to Qt Creator and edit cm-tests.pro:

QT += testlib
QT -= gui
TARGET = client-tests
TEMPLATE = app

CONFIG += c++14
CONFIG += console
CONFIG -= app_bundle

INCLUDEPATH += source

SOURCES += source/models/client-tests.cpp

This follows pretty much the same approach as with cm-lib, with the exception that we want a console app rather than a library. We don’t need the GUI module, but we will add the testlib module to get access to the Qt Test features.

There really isn’t much to this subproject just yet, but you should be able to run qmake and rebuild successfully.

主站蜘蛛池模板: 砚山县| 麦盖提县| 德庆县| 松原市| 平阳县| 德清县| 屏山县| 牙克石市| 衡山县| 潞西市| 织金县| 平武县| 都安| 安庆市| 上林县| 丹东市| 浦县| 磐石市| 眉山市| 东方市| 阳城县| 南郑县| 新乐市| 哈尔滨市| 恭城| 通渭县| 宣恩县| 凯里市| 九龙城区| 体育| 永川市| 东山县| 吉木乃县| 永春县| 新营市| 萨迦县| 驻马店市| 福清市| 普格县| 方正县| 宜阳县|