1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00
QXlsx/HelloExcel/HelloExcel.pro

170 lines
4.4 KiB
Prolog
Raw Normal View History

2017-08-16 20:58:34 +09:00
#
2017-08-26 19:41:33 +09:00
# HelloExcel.pro
2017-08-16 20:58:34 +09:00
#
2017-10-05 13:57:26 +09:00
# QXlsx https://github.com/j2doll/QXlsx
2017-08-16 20:58:34 +09:00
#
2017-10-05 13:57:26 +09:00
# GPL License v3 https://www.gnu.org/licenses/gpl-3.0.en.html
2017-08-26 19:41:33 +09:00
#
2017-10-05 13:57:26 +09:00
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
2017-08-16 20:58:34 +09:00
QT += core
2017-09-16 16:35:03 +09:00
QT += gui
2017-08-16 20:58:34 +09:00
TARGET = HelloExcel
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
2017-08-26 19:41:33 +09:00
#--------------------------------------------------------------------
2017-08-16 20:58:34 +09:00
# set include & libs path for your own test environment
2017-08-26 13:24:21 +09:00
# case : Qt5 & MingW(gcc) & QtCreator & Windows
2017-08-25 11:01:27 +00:00
win32-g++
{
2017-10-05 13:57:26 +09:00
INCLUDEPATH += "../QXlsx/QXlsx/header"
2017-08-26 13:02:08 +09:00
CONFIG(debug, debug|release) {
2017-09-08 22:53:38 +09:00
contains(QT_VERSION, 5.6.0) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_6_0_MinGW_32bit-Debug/debug"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.7.0) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_7_0_MinGW_32bit-Debug/debug"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.7.1) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_7_0_MinGW_32bit-Debug/debug"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.8.0) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_8_0_MinGW_32bit-Debug/debug"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.9.0) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_9_0_MinGW_32bit-Debug/debug"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.9.1) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_9_1_MinGW_32bit-Debug/debug"
}
2017-08-26 13:02:08 +09:00
} else {
2017-09-08 22:53:38 +09:00
contains(QT_VERSION, 5.6.0) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_6_0_MinGW_32bit-Release/release"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.7.0) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_7_0_MinGW_32bit-Release/release"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.7.1) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_7_0_MinGW_32bit-Release/release"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.8.0) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_8_0_MinGW_32bit-Release/release"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.9.0) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_9_0_MinGW_32bit-Release/release"
2017-09-08 22:53:38 +09:00
}
contains(QT_VERSION, 5.9.1) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../build-QXlsx-Desktop_Qt_5_9_1_MinGW_32bit-Release/release"
}
2017-08-26 13:02:08 +09:00
}
2017-08-25 11:01:27 +00:00
}
2017-08-26 13:24:21 +09:00
# case : Qt5 & Linux & gcc
2017-08-25 11:01:27 +00:00
linux-g++
{
2017-10-05 13:57:26 +09:00
INCLUDEPATH += "../QXlsx/header"
LIBS += -L"../QXlsx/"
2017-08-25 11:01:27 +00:00
}
2017-08-16 20:58:34 +09:00
2017-08-26 19:41:33 +09:00
# case : Qt5 & Visual Studio(VC++) & Windows
2017-09-23 10:44:41 +09:00
win32-msvc2012
{
CONFIG(debug, debug|release) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../QXlsx/debug"
2017-09-23 10:44:41 +09:00
} else {
2017-10-05 13:57:26 +09:00
LIBS += -L"../QXlsx/release"
2017-09-23 10:44:41 +09:00
}
}
2017-08-26 13:38:23 +09:00
win32-msvc2013
{
CONFIG(debug, debug|release) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../QXlsx/debug"
2017-08-26 13:38:23 +09:00
} else {
2017-10-05 13:57:26 +09:00
LIBS += -L"../QXlsx/release"
2017-08-26 13:38:23 +09:00
}
}
win32-msvc2015
{
CONFIG(debug, debug|release) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../QXlsx/debug"
2017-09-23 10:44:41 +09:00
} else {
2017-10-05 13:57:26 +09:00
LIBS += -L"../QXlsx/release"
2017-09-23 10:44:41 +09:00
}
}
win32-msvc2017
{
CONFIG(debug, debug|release) {
2017-10-05 13:57:26 +09:00
LIBS += -L"../QXlsx/debug"
2017-08-26 13:38:23 +09:00
} else {
2017-10-05 13:57:26 +09:00
LIBS += -L"../QXlsx/release"
2017-08-26 13:38:23 +09:00
}
}
2017-08-26 19:41:33 +09:00
# case : Qt5 & XCode(gcc) & MAC OS
2017-08-26 13:38:23 +09:00
mac
{
}
2017-10-05 13:57:26 +09:00
# link QXlsx library
LIBS += -lQXlsx
2017-08-16 20:58:34 +09:00
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as 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 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
SOURCES += \
2017-09-16 16:35:03 +09:00
calendar.cpp \
chart.cpp \
chartsheet.cpp \
datavalidation.cpp \
definename.cpp \
demo.cpp \
documentproperty.cpp \
extractdata.cpp \
formulas.cpp \
hello.cpp \
hyperlinks.cpp \
image.cpp \
main.cpp \
mergecells.cpp \
numberformat.cpp \
richtext.cpp \
rowcolumn.cpp \
style.cpp \
worksheetoperations.cpp
2017-08-16 20:58:34 +09:00