Files
gcs-nf/opmap/internals/internals.pro
T

75 lines
1.7 KiB
Prolog

TEMPLATE = lib
TARGET = internals
DEFINES += OPMAPINTERNALS_LIBRARY
DEFINES += QtOpmapInternals
#VS的补丁 使用 自定义的数学常数
DEFINES += _USE_MATH_DEFINES
#目标生成路径
DESTDIR = $$PWD/../../thirdpart/lib
MOC_DIR = $$PWD/../../build
OBJECTS_DIR = $$PWD/../../build
QT += network
QT += sql
CONFIG += staticlib\
plugin
HEADERS += core.h \
internalglobal.h \
mathdefine.h \
mousewheelzoomtype.h \
rectangle.h \
tile.h \
tilematrix.h \
loadtask.h \
copyrightstrings.h \
pureprojection.h \
pointlatlng.h \
rectlatlng.h \
sizelatlng.h \
debugheader.h
SOURCES += core.cpp \
rectangle.cpp \
tile.cpp \
tilematrix.cpp \
pureprojection.cpp \
rectlatlng.cpp \
sizelatlng.cpp \
pointlatlng.cpp \
loadtask.cpp \
mousewheelzoomtype.cpp
HEADERS += ./projections/lks94projection.h \
./projections/mercatorprojection.h \
./projections/mercatorprojectionyandex.h \
./projections/platecarreeprojection.h \
./projections/platecarreeprojectionpergo.h
SOURCES += ./projections/lks94projection.cpp \
./projections/mercatorprojection.cpp \
./projections/mercatorprojectionyandex.cpp \
./projections/platecarreeprojection.cpp \
./projections/platecarreeprojectionpergo.cpp
INCLUDEPATH += $$PWD/../../thirdpart/include
LIBS += -L$$PWD/../../thirdpart/lib -lcore
win32|win64 {
src_dir = $$PWD\\*.h
dst_dir = $$PWD\\..\\..\\thirdpart\\include\\
# dst_dir 最后的 \\ 是必须的,用来标示 xcopy 到一个文件夹,若不存在,创建之
# Replace slashes in paths with backslashes for Windows
src_dir ~= s,/,\\,g
dst_dir ~= s,/,\\,g
system(xcopy $$src_dir $$dst_dir /y /e)
}