2010-02-28 21:48:03 +00:00
|
|
|
# -------------------------------------------------
|
|
|
|
# Project created by QtCreator 2010-02-26T22:34:51
|
|
|
|
# -------------------------------------------------
|
|
|
|
TARGET = openEMS
|
|
|
|
CONFIG += console
|
2010-04-17 19:54:47 +00:00
|
|
|
CONFIG -= app_bundle qt
|
2010-02-28 21:48:03 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
OBJECTS_DIR = obj
|
2010-04-28 09:15:59 +00:00
|
|
|
INCLUDEPATH += .
|
2010-03-04 10:53:58 +00:00
|
|
|
INCLUDEPATH += ../CSXCAD \
|
2010-04-09 13:51:37 +00:00
|
|
|
../fparser \
|
2010-03-11 09:56:19 +00:00
|
|
|
../tinyxml
|
2010-04-28 09:15:59 +00:00
|
|
|
LIBS += -L../CSXCAD -lCSXCAD
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
INCLUDEPATH += ../hdf5/include ../boost/include/boost-1_42
|
|
|
|
LIBS += ../hdf5/lib/libhdf5_cpp.a ../hdf5/lib/libhdf5.a
|
|
|
|
LIBS += ../boost/lib/libboost_thread-mgw44-mt.lib
|
|
|
|
LIBS += -L../CSXCAD/release
|
|
|
|
LIBS += ../fparser/release/libfparser4.a
|
|
|
|
LIBS += ../tinyxml/release/libtinyxml2.a
|
|
|
|
}
|
|
|
|
!win32 {
|
|
|
|
LIBS += ../fparser/libfparser.so
|
|
|
|
LIBS += ../tinyxml/libtinyxml.so
|
|
|
|
LIBS += -lboost_thread
|
|
|
|
LIBS += -lhdf5 -lhdf5_cpp
|
|
|
|
}
|
|
|
|
|
2010-03-26 16:34:47 +00:00
|
|
|
QMAKE_LFLAGS += \'-Wl,-rpath,\$$ORIGIN/../CSXCAD\'
|
|
|
|
QMAKE_LFLAGS += \'-Wl,-rpath,\$$ORIGIN/../fparser\'
|
|
|
|
QMAKE_LFLAGS += \'-Wl,-rpath,\$$ORIGIN/../tinyxml\'
|
2010-02-28 21:48:03 +00:00
|
|
|
SOURCES += main.cpp \
|
|
|
|
tools/ErrorMsg.cpp \
|
2010-03-01 08:19:39 +00:00
|
|
|
tools/AdrOp.cpp \
|
|
|
|
FDTD/engine.cpp \
|
2010-03-01 13:56:27 +00:00
|
|
|
FDTD/operator.cpp \
|
2010-03-01 18:35:28 +00:00
|
|
|
tools/array_ops.cpp \
|
|
|
|
FDTD/processvoltage.cpp \
|
2010-03-02 13:54:50 +00:00
|
|
|
FDTD/processing.cpp \
|
2010-06-28 17:45:19 +00:00
|
|
|
FDTD/processintegral.cpp \
|
2010-03-02 13:54:50 +00:00
|
|
|
FDTD/processfields.cpp \
|
2010-03-04 10:53:58 +00:00
|
|
|
FDTD/processfields_td.cpp \
|
2010-03-07 11:49:38 +00:00
|
|
|
FDTD/processcurrent.cpp \
|
2010-03-26 11:57:52 +00:00
|
|
|
openems.cpp \
|
2010-04-09 13:51:37 +00:00
|
|
|
FDTD/engine_multithread.cpp \
|
|
|
|
FDTD/operator_cylinder.cpp \
|
2010-05-03 16:33:14 +00:00
|
|
|
FDTD/engine_sse.cpp \
|
|
|
|
FDTD/operator_sse.cpp \
|
2010-04-25 19:59:05 +00:00
|
|
|
FDTD/operator_extension.cpp \
|
2010-04-27 21:06:42 +00:00
|
|
|
FDTD/engine_extension.cpp \
|
|
|
|
FDTD/engine_ext_mur_abc.cpp \
|
2010-05-03 16:33:14 +00:00
|
|
|
FDTD/operator_ext_mur_abc.cpp \
|
2010-05-06 20:55:59 +00:00
|
|
|
FDTD/excitation.cpp \
|
|
|
|
FDTD/operator_ext_cylinder.cpp \
|
2010-05-19 09:41:35 +00:00
|
|
|
FDTD/engine_ext_cylinder.cpp \
|
|
|
|
FDTD/operator_sse_compressed.cpp \
|
2010-05-20 20:02:06 +00:00
|
|
|
FDTD/engine_sse_compressed.cpp \
|
2010-05-28 13:13:14 +00:00
|
|
|
FDTD/operator_multithread.cpp \
|
2010-06-28 16:05:03 +00:00
|
|
|
tools/global.cpp \
|
2010-07-06 08:01:26 +00:00
|
|
|
tools/useful.cpp \
|
|
|
|
FDTD/operator_ext_dispersive.cpp \
|
|
|
|
FDTD/operator_ext_lorentzmaterial.cpp \
|
|
|
|
FDTD/engine_ext_dispersive.cpp \
|
|
|
|
FDTD/engine_ext_lorentzmaterial.cpp
|
2010-03-05 13:20:25 +00:00
|
|
|
HEADERS += tools/ErrorMsg.h \
|
2010-02-28 21:48:03 +00:00
|
|
|
tools/AdrOp.h \
|
2010-03-01 08:19:39 +00:00
|
|
|
tools/constants.h \
|
|
|
|
FDTD/engine.h \
|
2010-03-01 13:56:27 +00:00
|
|
|
FDTD/operator.h \
|
2010-03-01 18:35:28 +00:00
|
|
|
tools/array_ops.h \
|
|
|
|
FDTD/processvoltage.h \
|
2010-03-02 13:54:50 +00:00
|
|
|
FDTD/processing.h \
|
2010-06-28 17:45:19 +00:00
|
|
|
FDTD/processintegral.h \
|
2010-03-02 13:54:50 +00:00
|
|
|
FDTD/processfields.h \
|
2010-03-04 10:53:58 +00:00
|
|
|
FDTD/processfields_td.h \
|
2010-03-07 11:49:38 +00:00
|
|
|
FDTD/processcurrent.h \
|
2010-03-26 11:57:52 +00:00
|
|
|
openems.h \
|
2010-04-09 13:51:37 +00:00
|
|
|
FDTD/engine_multithread.h \
|
|
|
|
FDTD/operator_cylinder.h \
|
2010-05-03 16:33:14 +00:00
|
|
|
FDTD/engine_sse.h \
|
|
|
|
FDTD/operator_sse.h \
|
2010-04-25 19:59:05 +00:00
|
|
|
FDTD/operator_extension.h \
|
2010-04-27 21:06:42 +00:00
|
|
|
FDTD/engine_extension.h \
|
|
|
|
FDTD/engine_ext_mur_abc.h \
|
2010-05-03 16:33:14 +00:00
|
|
|
FDTD/operator_ext_mur_abc.h \
|
2010-05-06 20:55:59 +00:00
|
|
|
FDTD/excitation.h \
|
|
|
|
FDTD/operator_ext_cylinder.h \
|
2010-05-19 09:41:35 +00:00
|
|
|
FDTD/engine_ext_cylinder.h \
|
|
|
|
FDTD/operator_sse_compressed.h \
|
2010-05-20 20:02:06 +00:00
|
|
|
FDTD/engine_sse_compressed.h \
|
2010-05-28 13:13:14 +00:00
|
|
|
FDTD/operator_multithread.h \
|
2010-06-28 16:05:03 +00:00
|
|
|
tools/global.h \
|
2010-07-06 08:01:26 +00:00
|
|
|
tools/useful.h \
|
|
|
|
FDTD/operator_ext_dispersive.h \
|
|
|
|
FDTD/operator_ext_lorentzmaterial.h \
|
|
|
|
FDTD/engine_ext_dispersive.h \
|
|
|
|
FDTD/engine_ext_lorentzmaterial.h
|
2010-05-04 07:31:10 +00:00
|
|
|
QMAKE_CXXFLAGS_RELEASE = -O3 \
|
2010-04-09 13:51:37 +00:00
|
|
|
-g \
|
2010-05-04 07:31:10 +00:00
|
|
|
-march=native
|
2010-04-09 13:51:37 +00:00
|
|
|
QMAKE_CXXFLAGS_DEBUG = -O0 \
|
|
|
|
-g \
|
2010-05-04 07:31:10 +00:00
|
|
|
-march=native
|
|
|
|
|
|
|
|
# add git revision
|
|
|
|
QMAKE_CXXFLAGS += -DGIT_VERSION=\\\"`git describe --tags`\\\"
|
2010-04-28 10:30:24 +00:00
|
|
|
|
|
|
|
# to use ABI2 target:
|
|
|
|
# qmake CONFIG+="ABI2 bits64" -o Makefile.ABI2-64 openEMS.pro
|
|
|
|
# make -fMakefile.ABI2-64
|
2010-05-03 16:33:14 +00:00
|
|
|
ABI2 {
|
|
|
|
CONFIG -= debug \
|
|
|
|
debug_and_release
|
|
|
|
CONFIG += release
|
|
|
|
QMAKE_CFLAGS_RELEASE = -O2 \
|
|
|
|
-fabi-version=2
|
|
|
|
QMAKE_CXXFLAGS_RELEASE = -O2 \
|
|
|
|
-fabi-version=2
|
|
|
|
QMAKE_CC = apgcc
|
|
|
|
QMAKE_CXX = apg++
|
|
|
|
QMAKE_LINK = apg++
|
|
|
|
QMAKE_LINK_SHLIB = apg++
|
|
|
|
QMAKE_LFLAGS_RPATH =
|
|
|
|
QMAKE_LFLAGS = \'-Wl,-rpath,\$$ORIGIN/lib\'
|
2010-04-28 10:30:24 +00:00
|
|
|
}
|
2010-05-03 16:33:14 +00:00
|
|
|
bits64 {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -m64 \
|
|
|
|
-march=athlon64
|
|
|
|
QMAKE_LFLAGS_RELEASE += -m64 \
|
|
|
|
-march=athlon64
|
|
|
|
OBJECTS_DIR = ABI2-64
|
|
|
|
LIBS = ../CSXCAD/ABI2-64/libCSXCAD.so
|
|
|
|
LIBS += ../fparser/ABI2-64/libfparser.so
|
|
|
|
LIBS += ../tinyxml/ABI2-64/libtinyxml.so
|
|
|
|
LIBS += ../boost-64/lib/libboost_thread.so
|
|
|
|
LIBS += ../hdf5-64/lib/libhdf5.so
|
|
|
|
LIBS += ../hdf5-64/lib/libhdf5_cpp.so \
|
|
|
|
-lpthread
|
|
|
|
INCLUDEPATH += ../hdf5-64/include
|
|
|
|
INCLUDEPATH += ../boost-64/include
|
2010-04-28 10:30:24 +00:00
|
|
|
}
|
2010-05-03 16:33:14 +00:00
|
|
|
bits32 {
|
|
|
|
QMAKE_CXXFLAGS_RELEASE += -m32 \
|
|
|
|
-march=i686
|
|
|
|
QMAKE_LFLAGS_RELEASE += -m32 \
|
|
|
|
-march=i686
|
|
|
|
OBJECTS_DIR = ABI2-32
|
|
|
|
LIBS = ../CSXCAD/ABI2-32/libCSXCAD.so
|
|
|
|
LIBS += ../fparser/ABI2-32/libfparser.so
|
|
|
|
LIBS += ../tinyxml/ABI2-32/libtinyxml.so
|
|
|
|
LIBS += ../boost-32/lib/libboost_thread.so
|
|
|
|
LIBS += ../hdf5-32/lib/libhdf5.so
|
|
|
|
LIBS += ../hdf5-32/lib/libhdf5_cpp.so
|
|
|
|
INCLUDEPATH += ../hdf5-32/include
|
|
|
|
INCLUDEPATH += ../boost-32/include
|
2010-04-28 10:30:24 +00:00
|
|
|
}
|
2010-05-03 16:33:14 +00:00
|
|
|
ABI2 {
|
|
|
|
DESTDIR = $$OBJECTS_DIR
|
|
|
|
MOC_DIR = $$OBJECTS_DIR
|
|
|
|
UI_DIR = $$OBJECTS_DIR
|
|
|
|
RCC_DIR = $$OBJECTS_DIR
|
2010-04-28 10:30:24 +00:00
|
|
|
}
|