openEMS presents its build version
parent
09cc2c7360
commit
c07eb52f30
6
main.cpp
6
main.cpp
|
@ -25,6 +25,10 @@
|
|||
|
||||
#define STANDALONE
|
||||
|
||||
#ifndef GIT_VERSION
|
||||
#define GIT_VERSION "unknown:compiled@" __DATE__
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
@ -34,6 +38,8 @@ int main(int argc, char *argv[])
|
|||
#ifdef STANDALONE
|
||||
if (argc<=1)
|
||||
{
|
||||
cout << " | openEMS version " GIT_VERSION << endl;
|
||||
cout << " | (C) 2010 Thorsten Liebig <thorsten.liebig@gmx.de> GPL license" << endl << endl;
|
||||
cout << " usage: openEMS FDTD_XML_FILE [--disable-dumps] [--debug-material] [--debug-operator]" << endl;
|
||||
exit(-1);
|
||||
}
|
||||
|
|
|
@ -76,12 +76,15 @@ HEADERS += tools/ErrorMsg.h \
|
|||
FDTD/engine_ext_mur_abc.h \
|
||||
FDTD/operator_ext_mur_abc.h \
|
||||
FDTD/excitation.h
|
||||
QMAKE_CXXFLAGS_RELEASE = -O2 \
|
||||
QMAKE_CXXFLAGS_RELEASE = -O3 \
|
||||
-g \
|
||||
-march=native -msse -msse2
|
||||
-march=native
|
||||
QMAKE_CXXFLAGS_DEBUG = -O0 \
|
||||
-g \
|
||||
-march=native -msse -msse2
|
||||
-march=native
|
||||
|
||||
# add git revision
|
||||
QMAKE_CXXFLAGS += -DGIT_VERSION=\\\"`git describe --tags`\\\"
|
||||
|
||||
# to use ABI2 target:
|
||||
# qmake CONFIG+="ABI2 bits64" -o Makefile.ABI2-64 openEMS.pro
|
||||
|
|
Loading…
Reference in New Issue