jpseditor.pro 4.12 KB
Newer Older
Ulrich Kemloh's avatar
Ulrich Kemloh committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
 # This file is part of JuPedSim.
 #
 # JuPedSim is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Lesser General Public License as published by
 # the Free Software Foundation, either version 3 of the License, or
 # any later version.
 #
 # JuPedSim 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 Lesser General Public License
 # along with JuPedSim. If not, see <http://www.gnu.org/licenses/>.
 #
16
 # copyright   <2009-2018> Forschungszentrum Juelich GmbH.
Tao Zhong's avatar
Tao Zhong committed
17

Ulrich Kemloh's avatar
Ulrich Kemloh committed
18 19 20 21
 # Compatibility with Qt4 and Qt5
greaterThan(QT_MAJOR_VERSION, 4):QT += widgets

TEMPLATE = app
22
TARGET = JPSeditor
Tao Zhong's avatar
Tao Zhong committed
23

24
CONFIG += qt xml gui;
25
CONFIG += c++11
Tao Zhong's avatar
Tao Zhong committed
26

27
QMAKE_CXXFLAGS += -std=c++11
28
QMAKE_CXXFLAGS += -static
29 30
#QMAKE_CXXFLAGS += -static-libgcc
#QMAKE_CXXFLAGS += -static-libstdc++
Ulrich Kemloh's avatar
Ulrich Kemloh committed
31

Tao Zhong's avatar
Tao Zhong committed
32 33 34 35
#QMAKE_CXXFLAGS_WARN_ON = -Wall -Wno-unused-parameter



Ulrich Kemloh's avatar
Ulrich Kemloh committed
36 37
FORMS += \
    forms/mainwindow.ui \
Erik Andresen's avatar
Erik Andresen committed
38
    forms/roomwidget.ui \
39
    forms/widgetlandmark.ui \
Tao Zhong's avatar
Tao Zhong committed
40
    forms/widgetsettings.ui \
Tao Zhong's avatar
Tao Zhong committed
41
    forms/inifilewidget.ui \
Tao Zhong's avatar
Tao Zhong committed
42
    forms/settingdialog.ui \
Tao Zhong's avatar
Tao Zhong committed
43
    forms/snappingoptions.ui
Ulrich Kemloh's avatar
Ulrich Kemloh committed
44 45 46 47 48 49 50 51 52 53 54


HEADERS += \
    src/mainWindow.h \
    src/GraphicView.h \
    src/roomwidget.h \
    src/rooms.h \
    src/datamanager.h \
    src/jpscrossing.h \
    src/jpsLineItem.h \
    src/jpsexit.h \
55
    src/jpsobstacle.h \
Erik Andresen's avatar
Erik Andresen committed
56
    src/jpslandmark.h \
57 58 59 60 61 62 63 64 65 66
    dxflib/src/dl_writer_ascii.h \
    dxflib/src/dl_writer.h \
    dxflib/src/dl_global.h \
    dxflib/src/dl_extrusion.h \
    dxflib/src/dl_exception.h \
    dxflib/src/dl_entities.h \
    dxflib/src/dl_dxf.h \
    dxflib/src/dl_creationinterface.h \
    dxflib/src/dl_creationadapter.h \
    dxflib/src/dl_codes.h \
Erik Andresen's avatar
Erik Andresen committed
67
    dxflib/src/dl_attributes.h \
68
    src/widgetlandmark.h \
69
    src/graphicscene.h \
70
    src/widgetsettings.h \
71 72
    src/jpsconnection.h \
    src/UndoFramework/actionstack.h \
73
    src/UndoFramework/action.h \
Erik Andresen's avatar
Erik Andresen committed
74
    src/UndoFramework/lineaction.h \
75 76 77
    src/jpsregion.h \
    src/AutomaticRoomIdentification/roomID.h\
    src/AutomaticRoomIdentification/roomdefinition.h \
78
    src/AutomaticRoomIdentification/roomidentification.h \
Tao Zhong's avatar
Tao Zhong committed
79
    src/dtrace.h \
Tao Zhong's avatar
Tao Zhong committed
80 81 82 83
    src/settingdialog.h \
    src/tinyxml/tinystr.h \
    src/tinyxml/tinyxml.h \
    src/inifilewidget.h \
Tao Zhong's avatar
Tao Zhong committed
84
    src/snappingoptions.h
85

Erik Andresen's avatar
Erik Andresen committed
86

Ulrich Kemloh's avatar
Ulrich Kemloh committed
87 88 89 90 91 92 93 94 95 96 97

SOURCES += \
    src/mainWindow.cpp \
    src/main.cpp \
    src/GraphicView.cpp \
    src/roomwidget.cpp \
    src/rooms.cpp \
    src/datamanager.cpp \
    src/jpscrossing.cpp \
    src/jpsLineItem.cpp \
    src/jpsexit.cpp \
98
    src/jpsobstacle.cpp \
Erik Andresen's avatar
Erik Andresen committed
99
    src/jpslandmark.cpp \
100
    dxflib/src/dl_writer_ascii.cpp \
Erik Andresen's avatar
Erik Andresen committed
101
    dxflib/src/dl_dxf.cpp \
102
    src/widgetlandmark.cpp \
103
    src/graphicscene.cpp \
104
    src/widgetsettings.cpp \
105 106
    src/jpsconnection.cpp \
    src/UndoFramework/actionstack.cpp \
107
    src/UndoFramework/action.cpp \
Erik Andresen's avatar
Erik Andresen committed
108
    src/UndoFramework/lineaction.cpp \
109 110
    src/jpsregion.cpp \
    src/AutomaticRoomIdentification/roomdefinition.cpp \
Tao Zhong's avatar
Tao Zhong committed
111
    src/AutomaticRoomIdentification/roomidentification.cpp \
Tao Zhong's avatar
Tao Zhong committed
112 113 114 115 116 117
    src/settingdialog.cpp \
    src/tinyxml/tinystr.cpp \
    src/tinyxml/tinyxml.cpp \
    src/tinyxml/tinyxmlerror.cpp \
    src/tinyxml/tinyxmlparser.cpp \
    src/inifilewidget.cpp \
Tao Zhong's avatar
Tao Zhong committed
118
    src/snappingoptions.cpp
119

Erik Andresen's avatar
Erik Andresen committed
120

Ulrich Kemloh's avatar
Ulrich Kemloh committed
121

Tao Zhong's avatar
Tao Zhong committed
122
#INCLUDEPATH += D:/boost_1_59_0/boost_1_59_0
Ulrich Kemloh's avatar
Ulrich Kemloh committed
123

Tao Zhong's avatar
Tao Zhong committed
124
RESOURCES += \
125
    Resources/resources.qrc
Ulrich Kemloh's avatar
Ulrich Kemloh committed
126

Tao Zhong's avatar
Tao Zhong committed
127
RC_FILE = Resources/jpseditor.rc
Ulrich Kemloh's avatar
Ulrich Kemloh committed
128
#osx fix
Tao Zhong's avatar
Tao Zhong committed
129
ICON = Resources/jpseditor.icns
130
#INCLUDEPATH += $$(ROOTSYS)/include
Ulrich Kemloh's avatar
Ulrich Kemloh committed
131

Mohcine Chraibi's avatar
Mohcine Chraibi committed
132

Tao Zhong's avatar
Tao Zhong committed
133 134 135 136 137 138
CONFIG(debug, debug|release) {
    DESTDIR = build/debug
}
CONFIG(release, debug|release) {
    DESTDIR = build/release
}
Ulrich Kemloh's avatar
Ulrich Kemloh committed
139

Tao Zhong's avatar
Tao Zhong committed
140 141 142 143
OBJECTS_DIR = $$DESTDIR/.obj
MOC_DIR = $$DESTDIR/.moc
RCC_DIR = $$DESTDIR/.qrc
UI_DIR = $$DESTDIR/.u
Ulrich Kemloh's avatar
Ulrich Kemloh committed
144

Mohcine Chraibi's avatar
Mohcine Chraibi committed
145

Tao Zhong's avatar
Tao Zhong committed
146 147
demos.path = /usr/local/bin/jpseditor
demos.files = examples/*
Ulrich Kemloh's avatar
Ulrich Kemloh committed
148

Mohcine Chraibi's avatar
Mohcine Chraibi committed
149 150 151 152 153 154 155 156 157 158 159 160
CONFIG(debug, debug|release) {
    DESTDIR = build/debug
}
CONFIG(release, debug|release) {
    DESTDIR = build/release
}

OBJECTS_DIR = $$DESTDIR/.obj
MOC_DIR = $$DESTDIR/.moc
RCC_DIR = $$DESTDIR/.qrc
UI_DIR = $$DESTDIR/.u

161 162 163
demos.path = /usr/local/bin/jpseditor
demos.files = examples/*

Tao Zhong's avatar
Tao Zhong committed
164
INSTALLS += demos
Ulrich Kemloh's avatar
Ulrich Kemloh committed
165

Tao Zhong's avatar
Tao Zhong committed
166 167
target.path = /usr/local/bin/jpseditor
INSTALLS += target