-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMolsketch.pro
39 lines (33 loc) · 1.36 KB
/
Molsketch.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
message("======= Welcome to Molsketch build =======")
REQUIRED_QT_VERSION=5
lessThan(QT_MAJOR_VERSION, $$REQUIRED_QT_VERSION) : error("Molsketch requires at least Qt version $${REQUIRED_QT_VERSION}.")
include(variables.pri)
############## SETTINGS
message("Build settings:")
buildVars = $$cat(buildvariables)
for(buildVar, $$list($$split(buildVars, \\n))) {
variableName = $$getVarName(buildVar)
isEmpty($$variableName) {
$$variableName = $$getVarDefault(buildVar)
contains(variableName, ".*INSTALL.*") : $$variableName = $$MSK_PREFIX$$eval($$variableName)
}
message("$$getVarDescription(buildVar): $${variableName} = $$eval($$variableName)")
write_file($$OUT_PWD/buildvars/$$variableName, $$variableName)
}
################# setting up sub projects
TEMPLATE = subdirs
CONFIG += ordered
SUBDIRS += \
libmolsketch \
molsketch
equals(MSK_OBABELIFACE, true) : SUBDIRS += obabeliface
################# making installs
INSTALLS += documentation
documentation.files = $$files($$PWD/doc/*, true)
documentation.path = $${MSK_INSTALL_DOCS}
OTHER_FILES += \
version \
versionnick \
CHANGELOG \
buildvariables \
COPYING