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/include/coin
19  INCLUDEPATH += /usr/include/coin/ThirdParty
20  INCLUDEPATH += /usr/include/adolc
21  INCLUDEPATH += `PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig: /usr/bin/pkg-config --cflags ipopt` $(ADDINCFLAGS)
22  LIBS += `PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig: /usr/bin/pkg-config --libs ipopt`
23  # Next line if we want compile also Coin::Flop++ models:
24  # LIBS += `PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig: pkg-config --libs flopcpp osi-cbc osi-clp`
25  #LIBS += -lcoinmetis -lcoinmumps -lblas -llapack
26  #LIBS += -lpthread -lgfortran -lcoinmetis -lblas
27  #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
28  #QMAKE_LFLAGS_RELEASE += -Wl,--rpath -Wl,/usr/lib
29  #QMAKE_LFLAGS += -lz
30  #QMAKE_LFLAGS_RELEASE += -lz
31  #QMAKE_LFLAGS_DEBUG += -lz
32 
33 
34 }
35 
36 win32 {
37 
38  INCLUDEPATH += ThirdParty/win32/include/coin
39  INCLUDEPATH += ThirdParty/win32/include/coin/ThirdParty
40  INCLUDEPATH += ThirdParty/win32/include
41  INCLUDEPATH += ThirdParty/win32/include/adolc
42  INCLUDEPATH += $$[QT_INSTALL_DATA]/src/3rdparty/zlib
43  LIBS += -L ThirdParty/win32/lib -lipopt
44  LIBS += -L ThirdParty/win32/lib -lcoinmetis
45  LIBS += -L ThirdParty/win32/lib -lcoinmumps
46  LIBS += -L ThirdParty/win32/lib -lcoinhsl
47  LIBS += -L ThirdParty/win32/lib -lcoinblas
48  LIBS += -L ThirdParty/win32/lib -lcoinlapack
49  LIBS += -L ThirdParty/win32/lib -ladolc
50  LIBS += -lpthread -lgfortran -lcoinmetis -lcoinblas
51  #CONFIG += console
52  CONFIG += exceptions
53 }
54 
55 INCLUDEPATH += ThirdParty/allos/include
56 
57 
58 TEMPLATE = app
59 DEPENDPATH += ". agents"
60 CONFIG += warn_on \
61  qt \
62  thread \
63  debug_and_release
64 #CONFIG -= release
65 
66 QMAKE_CXXFLAGS += -std=c++0x
67 #QMAKE_CXXFLAGS += -std=c++14
68 
69 #QMAKE_CXXFLAGS_RELEASE -= -O2
70 #QMAKE_CXXFLAGS_RELEASE += -O3
71 
72 #QMAKE_LFLAGS_RELEASE -= -O1
73 
74 # testing..
75 #CONFIG += link_pkgconfig
76 #PKGCONFIG += ipopt
77 #PKGCONFIG += coinasl
78 #PKGCONFIG += coinmetis
79 #PKGCONFIG += ipoptamplinterface
80 #PKGCONFIG += coinmumps
81 
82 
83 
84 #INCLUDEPATH += ". agents"
85 
86 
87 #OBJECTS_DIR = ../bin
88 
89 
90 CONFIG(release, debug|release) {
91  TARGET = ffsm
92 }
93 CONFIG(debug, debug|release) {
94  TARGET = ffsm_debug
95 }
96 
97 #Release:DESTDIR = ../build/release
98 #Release:TARGET = ffsm
99 Release:OBJECTS_DIR = ../build/release
100 Release:MOC_DIR = ../build/release
101 Release:RCC_DIR = ../build/release
102 #Release:UI_DIR = ../build/release # then th header file can't find the other headers!
103 
104 #Debug:DESTDIR = ../build/debug
105 #Debug:TARGET = ffsm_debug
106 Debug:OBJECTS_DIR = ../build/debug
107 Debug:MOC_DIR = ../build/debug
108 Debug:RCC_DIR = ../build/debug
109 #Debug:UI_DIR = ../build/debug
110 
111 
112 # Input
113 HEADERS += Adolc_debugtest.h \
114  CommonLib.h \
115  BaseClass.h \
116  Gis.h \
117  Init.h \
118  InputNode.h \
119  Ipopt_nlp_problem_debugtest.h \
120  MainProgram.h \
121  MainWindow.h \
122  ModelData.h \
123  ModelRegion.h \
124  #Set.h \
125  Opt.h \
126  Output.h \
127  Pixel.h \
128  Sandbox.h \
129  Scheduler.h \
130  ThreadManager.h \
131  MapBox.h \
132  Layers.h \
133  unzip.h \
134  unzip_p.h \
135  zip.h \
136  zip_p.h \
137  zipentry_p.h \
138  anyoption.h \
139  ScenarioSelectionWidget.h \
140  ModelCore.h \
141  ModelCoreSpatial.h \
142  Carbon.h
143 
144 FORMS += MainWindow.ui
145 SOURCES += Adolc_debugtest.cpp \
146  CommonLib.cpp \
147  BaseClass.cpp \
148  Gis.cpp \
149  Init.cpp \
150  Ipopt_nlp_problem_debugtest.cpp\
151  InputNode.cpp \
152  main.cpp \
153  MainProgram.cpp \
154  ModelData.cpp \
155  ModelRegion.cpp \
156  #Set.cpp \
157  Opt.cpp \
158  Output.cpp \
159  Pixel.cpp \
160  Scheduler.cpp \
161  Sandbox.cpp \
162  ThreadManager.cpp \
163  MainWindow.cpp \
164  MapBox.cpp \
165  Layers.cpp \
166  unzip.cpp \
167  zip.cpp \
168  anyoption.cpp \
169  ScenarioSelectionWidget.cpp \
170  ModelCore.cpp \
171  ModelCoreSpatial.cpp \
172  Carbon.cpp
173 
174 RESOURCES += resources.qrc
175