twain3.0/3rdparty/gpdf/hg_gpdf.pro

83 lines
3.2 KiB
Prolog
Raw Normal View History

QT -= gui core
TEMPLATE = lib
TARGET = hg_gpdf
CONFIG += c++11
#QT -= gui
#CONFIG += c++11 console
#CONFIG -= app_bundle
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked 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 it uses 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
win32 {
DEFINES += USE_STD_NAMESPACE _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS _CRT_SECURE_NO_WARNINGS WIN32
DEFINES -= UNICODE
contains(QT_ARCH, i386) {
CONFIG(release, debug|release) {
DESTDIR += ../bin/x86/release
LIBS += -L$$PWD/3rdparty/tesseract/staticlib/x86/release -lzlib -llibjpeg -llibpng -llibtiff -llibleptonica -ltesseract_api \
-ltesseract_arch -ltesseract_ccmain -ltesseract_ccstruct -ltesseract_ccutil -ltesseract_classify \
-ltesseract_cutil -ltesseract_dict -ltesseract_lstm -ltesseract_opencl -ltesseract_textord \
-ltesseract_viewer -ltesseract_wordrec -lcvblob -lxtiff Ws2_32.lib
}
CONFIG(debug, debug|release) {
DESTDIR += ../bin/x86/debug
LIBS += -L$$PWD/3rdparty/tesseract/staticlib/x86/debug -lzlib -llibjpeg -llibpng -llibtiff -llibleptonica -ltesseract_api \
-ltesseract_arch -ltesseract_ccmain -ltesseract_ccstruct -ltesseract_ccutil -ltesseract_classify \
-ltesseract_cutil -ltesseract_dict -ltesseract_lstm -ltesseract_opencl -ltesseract_textord \
-ltesseract_viewer -ltesseract_wordrec -lcvblob -lxtiff -lWs2_32
}
} else {
CONFIG(release, debug|release) {
DESTDIR += ../bin/x64/release
LIBS += -L$$PWD/bin/x64/release/ -lleptonica \
-L$$PWD/../bin/x64/release/ -lHG_OCR
}
CONFIG(debug, debug|release) {
DESTDIR += ../bin/x64/debug
LIBS += -L$$PWD/../bin/x64/debug/ -lleptonica \
-L$$PWD/../bin/x64/debug/ -lHG_OCR
}
}
INCLUDEPATH += $$PWD/3rdparty/tesseract/include/leptonica \
$$PWD/3rdparty/tesseract/include/tesseract-ocr/api \
$$PWD/3rdparty/tesseract/include/tesseract-ocr/ccutil \
$$PWD/3rdparty/tesseract/include/tesseract-ocr/ccstruct \
$$PWD/3rdparty/tesseract/include/tesseract-ocr/ccmain
DEPENDPATH += $$PWD/3rdparty/tesseract/include/leptonica \
$$PWD/3rdparty/tesseract/include/tesseract-ocr
}
unix {
DEFINES += USE_STD_NAMESPACE _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS _CRT_SECURE_NO_WARNINGS UNIX
DEFINES -= UNICODE
CONFIG(release, debug|release) {
DESTDIR += $$PWD/../bin/x86/release
}
CONFIG(debug, debug|release) {
DESTDIR += $$PWD/../bin/x86/debug
}
LIBS += -ltesseract
}
SOURCES += \
hg_gpdf.cpp
HEADERS += \
hg_gpdf.h