TEMPLATE = lib
TARGET = test1
DEFINES += TEST1_LIBRARY
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += \
Test1.cpp
HEADERS += \
Test1.hpp \
test1_global.hpp
win32-msvc*{
QMAKE_CXXFLAGS += /std:c++latest
QMAKE_CXXFLAGS += /await
}else{
CONFIG+=c++17
}#
CONFIG(debug,debug|release){
DESTDIR = $$PWD/../bin/debug
}else{
DESTDIR = $$PWD/../bin/release
}
//Test1.hpp
#ifndef TEST1_HPP
#define TEST1_HPP
#include "test1_global.hpp"
class TEST1_EXPORT Test1{
public:
Test1();
};
#endif
//Test1.cpp
#include "Test1.hpp"
Test1::Test1(){
}
//test1_global.hpp
#ifndef UNTITLED1_GLOBAL_HPP
#define UNTITLED1_GLOBAL_HPP
#include <QtCore/qglobal.h>
#if defined(TEST1_LIBRARY)
# define TEST1_EXPORT Q_DECL_EXPORT
#else
# define TEST1_EXPORT Q_DECL_IMPORT
#endif
#endif