1 ######################################################################
2 # Project file for the FFSM Forest Model
3 # http://www.ffsm-model.org
5 # You need the Qt GUI framework to use this file.
6 ######################################################################
16 LIBS += -lz # needed in Qt5/ ubuntu 13.10 64bit
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
33 #QMAKE_LFLAGS_RELEASE += -lz
34 #QMAKE_LFLAGS_DEBUG += -lz
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
55 # CONFIG += exceptions
58 INCLUDEPATH += ThirdParty/allos/include
62 DEPENDPATH += ". agents"
69 QMAKE_CXXFLAGS += -std=c++0x
70 #QMAKE_CXXFLAGS += -std=c++14
72 #QMAKE_CXXFLAGS_RELEASE -= -O2
73 #QMAKE_CXXFLAGS_RELEASE += -O3
75 #QMAKE_LFLAGS_RELEASE -= -O1
78 #CONFIG += link_pkgconfig
81 #PKGCONFIG += coinmetis
82 #PKGCONFIG += ipoptamplinterface
83 #PKGCONFIG += coinmumps
87 #INCLUDEPATH += ". agents"
93 CONFIG(release, debug|release) {
96 CONFIG(debug, debug|release) {
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!
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
116 HEADERS += Adolc_debugtest.h \
122 Ipopt_nlp_problem_debugtest.h \
142 ScenarioSelectionWidget.h \
147 FORMS += MainWindow.ui
148 SOURCES += Adolc_debugtest.cpp \
153 Ipopt_nlp_problem_debugtest.cpp\
172 ScenarioSelectionWidget.cpp \
174 ModelCoreSpatial.cpp \
177 RESOURCES += resources.qrc