1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00
QXlsx/HelloExcel/HelloExcel.pro

102 lines
3.1 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
#
# MIT License
# Copyright (c) 2017, j2doll (https://github.com/j2doll)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
2017-08-26 19:41:33 +09:00
#
2017-08-16 20:58:34 +09:00
#--------------------------------------------------------------------
QT += core
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-08-26 13:24:21 +09:00
INCLUDEPATH += "../QtXlsxWriter-Static/QtXlsxWriter-Static/include"
2017-08-26 13:02:08 +09:00
CONFIG(debug, debug|release) {
LIBS += -L"../build-QtXlsxWriter-Static-Desktop_Qt_5_9_1_MinGW_32bit-Debug/debug"
# DESTDIR = build/debug
} else {
2017-08-26 13:24:21 +09:00
LIBS += -L"../build-QtXlsxWriter-Static-Desktop_Qt_5_9_1_MinGW_32bit-Release/release"
2017-08-26 13:02:08 +09:00
# DESTDIR = build/release
}
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-08-26 13:24:21 +09:00
INCLUDEPATH += "../QtXlsxWriter-Static/include"
LIBS += -L"../QtXlsxWriter-Static/"
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-08-26 13:38:23 +09:00
win32-msvc2013
{
CONFIG(debug, debug|release) {
# LIBS += -L"" # debug lib
} else {
# LIBS += -L"" $ release lib
}
}
win32-msvc2015
{
CONFIG(debug, debug|release) {
# LIBS += -L"" # debug lib
} else {
# LIBS += -L"" $ release lib
}
}
2017-08-26 19:41:33 +09:00
# case : Qt5 & XCode(gcc) & MAC OS
2017-08-26 13:38:23 +09:00
mac
{
}
2017-08-26 19:41:33 +09:00
# link QtXlsxWriter-Static library
2017-08-16 20:58:34 +09:00
LIBS += -lQtXlsxWriter-Static
# 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-08-26 13:24:21 +09:00
main.cpp
2017-08-16 20:58:34 +09:00