TEMPLATE = app
CONFIG += console c++11 c++14
CONFIG -= app_bundle
CONFIG -= qt
###########################################################
TARGET = APP_NAME
CONFIG += debug_and_release
CONFIG(debug,debug|release){
DESTDIR = ../$${TARGET}_Debug
}else{
DESTDIR = ../$${TARGET}_Release
}
###########################################################
#外部头文件,相对路径,一般指库的头文件
ExternalHeader = \
$$files("../includes/*.h", true) \
$$files("../lib/*.h", true)

#搜寻该路径底下的文件
SourceDir = . \
./APP_\
./public \
./tools/Ini \
./tools/Json \
./tools/Log \
./tools/timer
#Video yuv2jpg
#递归搜寻所有.cpp .h 文件
for(var, SourceDir) {
SOURCES += $$files($$join(var, , , /*.cpp), true)
SOURCES += $$files($$join(var, , , /*.c) , true)
HEADERS += $$files($$join(var, , , /*.h*) , true)
INCLUDEPATH += $$join(var, , , /include)
# message($$join(var, , , /include))
}

#搜寻所有头文件所在的路径,取目录路径,去重
INCLUDEPATH = $$dirname(INCLUDEPATH) $$dirname(HEADERS)
INCLUDEPATH = $$unique(INCLUDEPATH)

DISTFILES += \
README.md