76 lines
2.0 KiB
Prolog
76 lines
2.0 KiB
Prolog
TEMPLATE = app
|
|
|
|
QT += core testlib
|
|
QT -= gui widgets
|
|
|
|
CONFIG += c++23 qt console warn_on depend_includepath testcase
|
|
QMAKE_CXXFLAGS += -std=c++2b
|
|
CONFIG -= app_bundle
|
|
|
|
SOURCES += \
|
|
tst_espchrono.cpp
|
|
|
|
ESPCHRONO_DIR = $$PWD/..
|
|
|
|
include($$ESPCHRONO_DIR/espchrono.pri)
|
|
include($$ESPCHRONO_DIR/espchrono_src.pri)
|
|
include($$ESPCHRONO_DIR/test/espchronotestutils.pri)
|
|
include($$ESPCHRONO_DIR/test/espchronotestutils_src.pri)
|
|
|
|
equals(CLONE_CPPUTILS, 1) {
|
|
CPPUTILS_DIR = $$PWD/cpputils
|
|
|
|
message("Checking out cpputils...")
|
|
exists($$CPPUTILS_DIR/.git) {
|
|
system("git -C $$CPPUTILS_DIR pull")
|
|
} else {
|
|
system("git clone https://github.com/0xFEEDC0DE64/cpputils.git $$CPPUTILS_DIR")
|
|
}
|
|
} else: exists($$PWD/../../cpputils/src) {
|
|
CPPUTILS_DIR = $$PWD/../../cpputils
|
|
} else {
|
|
error("cpputils not found, please run git submodule update --init")
|
|
}
|
|
|
|
include($$CPPUTILS_DIR/cpputils.pri)
|
|
include($$CPPUTILS_DIR/cpputils_src.pri)
|
|
include($$CPPUTILS_DIR/test/cpputilstestutils.pri)
|
|
include($$CPPUTILS_DIR/test/cpputilstestutils_src.pri)
|
|
|
|
equals(CLONE_DATE, 1) {
|
|
DATE_DIR = $$PWD/date
|
|
|
|
message("Checking out date...")
|
|
exists($$DATE_DIR/.git): {
|
|
system("git -C $$DATE_DIR pull")
|
|
} else {
|
|
system("git clone https://github.com/0xFEEDC0DE64/date.git $$DATE_DIR")
|
|
}
|
|
} else: exists($$PWD/../../date/include) {
|
|
DATE_DIR = $$PWD/../../date
|
|
} else {
|
|
error("date not found, please run git submodule update --init")
|
|
}
|
|
|
|
include($$DATE_DIR/date.pri)
|
|
|
|
equals(CLONE_FMT, 1) {
|
|
FMT_DIR = $$PWD/fmt
|
|
|
|
message("Checking out fmt...")
|
|
exists($$FMT_DIR/.git): {
|
|
system("git -C $$FMT_DIR pull")
|
|
} else {
|
|
system("git clone https://github.com/0xFEEDC0DE64/fmt.git $$FMT_DIR")
|
|
}
|
|
} else: exists($$PWD/../../fmt/include) {
|
|
FMT_DIR = $$PWD/../../fmt
|
|
} else {
|
|
error("fmt not found, please run git submodule update --init")
|
|
}
|
|
|
|
include($$FMT_DIR/fmt.pri)
|
|
include($$FMT_DIR/fmt_src.pri)
|
|
|
|
QMAKE_CXXFLAGS += -Wno-missing-field-initializers
|