FFSM++  1.1.0
French Forest Sector Model ++
src.pro
Go to the documentation of this file.
1 ######################################################################
2 # Project file for the FFSM Forest Model
3 # http://www.ffsm-model.org
4 #
5 # You need the Qt GUI framework to use this file.
6 ######################################################################
7 
8 QT += xml
9 QT += widgets
10 DESTDIR = ..
11 #TARGET = ffsm
12 
13 unix {
14  #LIBS += -lipopt
15  LIBS += -ladolc
16  LIBS += -lz # needed in Qt5/ ubuntu 13.10 64bit
17  #LIBS += -lColPack
18  INCLUDEPATH += /usr/lib/gcc/x86_64-linux-gnu/9/include
19  INCLUDEPATH += /usr/local/include
20  INCLUDEPATH += /usr/include/x86_64-linux-gnu
21  INCLUDEPATH += /usr/include/coin
22  INCLUDEPATH += /usr/include/coin/ThirdParty
23  INCLUDEPATH += /usr/include/adolc
24  INCLUDEPATH += `PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig: /usr/bin/pkg-config --cflags ipopt` $(ADDINCFLAGS)
25  LIBS += `PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig: /usr/bin/pkg-config --libs ipopt`
26  # Next line if we want compile also Coin::Flop++ models:
27  # LIBS += `PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig: pkg-config --libs flopcpp osi-cbc osi-clp`
28  #LIBS += -lcoinmetis -lcoinmumps -lblas -llapack
29  #LIBS += -lpthread -lgfortran -lcoinmetis -lblas
30  #QMAKE_CXXFLAGS_RELEASE += -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long -DIPOPT_BUILD
31  #QMAKE_LFLAGS_RELEASE += -Wl,--rpath -Wl,/usr/lib
32  #QMAKE_LFLAGS += -lz
33  #QMAKE_LFLAGS_RELEASE += -lz
34  #QMAKE_LFLAGS_DEBUG += -lz
35 
36 
37 }
38 
39 #win32 {
40 # # win32 "support" removed commit 20230523
41 # INCLUDEPATH += ThirdParty/win32/include/coin
42 # INCLUDEPATH += ThirdParty/win32/include/coin/ThirdParty
43 # INCLUDEPATH += ThirdParty/win32/include
44 # INCLUDEPATH += ThirdParty/win32/include/adolc
45 # INCLUDEPATH += $$[QT_INSTALL_DATA]/src/3rdparty/zlib
46 # LIBS += -L ThirdParty/win32/lib -lipopt
47 # LIBS += -L ThirdParty/win32/lib -lcoinmetis
48 # LIBS += -L ThirdParty/win32/lib -lcoinmumps
49 # LIBS += -L ThirdParty/win32/lib -lcoinhsl
50 # LIBS += -L ThirdParty/win32/lib -lcoinblas
51 # LIBS += -L ThirdParty/win32/lib -lcoinlapack
52 # LIBS += -L ThirdParty/win32/lib -ladolc
53 # LIBS += -lpthread -lgfortran -lcoinmetis -lcoinblas
54 # #CONFIG += console
55 # CONFIG += exceptions
56 #}
57 
58 INCLUDEPATH += ThirdParty/allos/include
59 
60 
61 TEMPLATE = app
62 DEPENDPATH += ". agents"
63 CONFIG += warn_on \
64  qt \
65  thread \
66  debug_and_release
67 #CONFIG -= release
68 
69 QMAKE_CXXFLAGS += -std=c++0x
70 #QMAKE_CXXFLAGS += -std=c++14
71 
72 #QMAKE_CXXFLAGS_RELEASE -= -O2
73 #QMAKE_CXXFLAGS_RELEASE += -O3
74 
75 #QMAKE_LFLAGS_RELEASE -= -O1
76 
77 # testing..
78 #CONFIG += link_pkgconfig
79 #PKGCONFIG += ipopt
80 #PKGCONFIG += coinasl
81 #PKGCONFIG += coinmetis
82 #PKGCONFIG += ipoptamplinterface
83 #PKGCONFIG += coinmumps
84 
85 
86 
87 #INCLUDEPATH += ". agents"
88 
89 
90 #OBJECTS_DIR = ../bin
91 
92 
93 CONFIG(release, debug|release) {
94  TARGET = ffsm
95 }
96 CONFIG(debug, debug|release) {
97  TARGET = ffsm_debug
98 }
99 
100 #Release:DESTDIR = ../build/release
101 #Release:TARGET = ffsm
102 Release:OBJECTS_DIR = ../build/release
103 Release:MOC_DIR = ../build/release
104 Release:RCC_DIR = ../build/release
105 #Release:UI_DIR = ../build/release # then th header file can't find the other headers!
106 
107 #Debug:DESTDIR = ../build/debug
108 #Debug:TARGET = ffsm_debug
109 Debug:OBJECTS_DIR = ../build/debug
110 Debug:MOC_DIR = ../build/debug
111 Debug:RCC_DIR = ../build/debug
112 #Debug:UI_DIR = ../build/debug
113 
114 
115 # Input
116 HEADERS += Adolc_debugtest.h \
117  CommonLib.h \
118  BaseClass.h \
119  Gis.h \
120  Init.h \
121  InputNode.h \
122  Ipopt_nlp_problem_debugtest.h \
123  MainProgram.h \
124  MainWindow.h \
125  ModelData.h \
126  ModelRegion.h \
127  #Set.h \
128  Opt.h \
129  Output.h \
130  Pixel.h \
131  Sandbox.h \
132  Scheduler.h \
133  ThreadManager.h \
134  MapBox.h \
135  Layers.h \
136  unzip.h \
137  unzip_p.h \
138  zip.h \
139  zip_p.h \
140  zipentry_p.h \
141  anyoption.h \
142  ScenarioSelectionWidget.h \
143  ModelCore.h \
144  ModelCoreSpatial.h \
145  Carbon.h
146 
147 FORMS += MainWindow.ui
148 SOURCES += Adolc_debugtest.cpp \
149  CommonLib.cpp \
150  BaseClass.cpp \
151  Gis.cpp \
152  Init.cpp \
153  Ipopt_nlp_problem_debugtest.cpp\
154  InputNode.cpp \
155  main.cpp \
156  MainProgram.cpp \
157  ModelData.cpp \
158  ModelRegion.cpp \
159  #Set.cpp \
160  Opt.cpp \
161  Output.cpp \
162  Pixel.cpp \
163  Scheduler.cpp \
164  Sandbox.cpp \
165  ThreadManager.cpp \
166  MainWindow.cpp \
167  MapBox.cpp \
168  Layers.cpp \
169  unzip.cpp \
170  zip.cpp \
171  anyoption.cpp \
172  ScenarioSelectionWidget.cpp \
173  ModelCore.cpp \
174  ModelCoreSpatial.cpp \
175  Carbon.cpp
176 
177 RESOURCES += resources.qrc
178