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

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.

主站蜘蛛池模板: 盱眙县| 关岭| 蓝山县| 荥经县| 朝阳市| 鹿泉市| 鞍山市| 洪洞县| 台州市| 丽水市| 天峨县| 封丘县| 元阳县| 乌拉特中旗| 武平县| 甘泉县| 扶绥县| 赣州市| 高雄市| 泗洪县| 临澧县| 阿拉善右旗| 乐清市| 迁安市| 双桥区| 沁阳市| 安庆市| 泸水县| 赤水市| 乡宁县| 武隆县| 扶绥县| 吉林省| 丰城市| 文水县| 微博| 长葛市| 阿图什市| 贵阳市| 泗洪县| 怀集县|