forked from thermohub/chemicalfun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chemicalfun_example.pro
62 lines (47 loc) · 1.47 KB
/
chemicalfun_example.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
TEMPLATE = app
CONFIG += thread console c++17
CONFIG -= app_bundle
CONFIG -= qt
CONFIG += sanitaze sanitaze_thread
#DEFINES += SPDLOG_HEADER_ONLY
#DEFINES += SPDLOG_FMT_EXTERNAL
!win32 {
DEFINES += __unix
QMAKE_CFLAGS += pedantic -Wall -Wextra -Wwrite-strings -Werror
#QMAKE_CXXFLAGS += -ansi -pedantic -Wall -Wextra -Weffc++
QMAKE_CXXFLAGS += -Wall -Wextra -Wformat-nonliteral -Wcast-align -Wpointer-arith \
-Wmissing-declarations -Winline -Wundef \ #-Weffc++ \
-Wcast-qual -Wshadow -Wwrite-strings -Wno-unused-parameter \
-Wfloat-equal -pedantic -ansi
#QMAKE_CXXFLAGS += -pg # gprof information
}
macx-g++ {
DEFINES += __APPLE__
}
macx-clang {
DEFINES += __APPLE__
INCLUDEPATH += "/usr/local/include"
DEPENDPATH += "/usr/local/include"
LIBPATH += "/usr/local/lib/"
}
win32 {
INCLUDEPATH += "C:\usr\local\include"
DEPENDPATH += "C:\usr\local\include"
LIBPATH += "C:\usr\local\lib"
}
# Define the directory where source code is located
CHEMICALFUN_DIR = $$PWD/src
CHEMICALFUN_HEADERS_DIR = $$PWD/include
DEPENDPATH += $$CHEMICALFUN_DIR
DEPENDPATH += $$CHEMICALFUN_HEADERS_DIR
INCLUDEPATH += $$CHEMICALFUN_DIR
INCLUDEPATH += $$CHEMICALFUN_HEADERS_DIR
#LIBS += -pg # gprof information
#unix:!macx-clang:LIBS += -pg -lstdc++fs
OBJECTS_DIR = obj
include($$CHEMICALFUN_DIR/chemicalfun.pri)
SOURCES += \
# examples/elements_example.cpp \
# examples/dbelements_example.cpp \
# examples/formula_parser_example.cpp
examples/thread_example.cpp