12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- # ================================================== #
- message(================QT INFO====================)
- message(Qt version: $$[QT_VERSION])
- message(Qt is installed in $$[QT_INSTALL_PREFIX])
- # ================================================== #
- PROJECT_ROOT_PATH = $${PWD}/
- win32: OS_SUFFIX = win32
- linux-g++: OS_SUFFIX = linux
- CONFIG(debug, debug|release) {
- BUILD_FLAG = debug
- LIB_SUFFIX = d
- } else {
- BUILD_FLAG = release
- }
- LIBS_PATH = $${PROJECT_ROOT_PATH}/lib.$${OS_SUFFIX}/
- INC_PATH = $${PROJECT_ROOT_PATH}/include/
- IMPORT_PATH = $${PROJECT_ROOT_PATH}/import/
- BIN_PATH = $${PROJECT_ROOT_PATH}/bin/$${BUILD_FLAG}/
- BUILD_PATH = $${PROJECT_ROOT_PATH}/build/$${BUILD_FLAG}/$${TARGET}/
- RCC_DIR = $${BUILD_PATH}/rcc/
- UI_DIR = $${BUILD_PATH}/ui/
- MOC_DIR = $${BUILD_PATH}/moc/
- OBJECTS_DIR = $${BUILD_PATH}/obj/
- LIBS += -L$${LIBS_PATH}/
- INCLUDEPATH += $${INC_PATH}/
- INCLUDEPATH += $${IMPORT_PATH}/
- QMAKE_CXXFLAGS += -O2 -std=c++14
- # The following define makes your compiler emit warnings if you use
- # any feature of Qt which has been marked as deprecated (the exact warnings
- # depend on your compiler). Please consult the documentation of the
- # deprecated API in order to know how to port your code away from it.
- DEFINES += QT_DEPRECATED_WARNINGS
- # You can also make your code fail to compile if you use deprecated APIs.
- # In order to do so, uncomment the following line.
- # You can also select to disable deprecated APIs only up to a certain version of Qt.
- #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|