-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconanfile.py
59 lines (54 loc) · 1.75 KB
/
conanfile.py
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
__copyright__ = """This code is licensed under the 3-clause BSD license.
Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.
See LICENSE.txt for details.
"""
from dev.conan.base import ScineConan
class MolassemblerConan(ScineConan):
name = "scine_molassembler"
version = "3.0.0"
license = "BSD-3-Clause"
author = "ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group"
url = "https://scine.ethz.ch/download/molassembler"
description = "Molecular graph interpretation, modification and conformer generation"
options = {
"shared": [True, False],
"python": [True, False],
"tests": [True, False],
"docs": [True, False],
"coverage": [True, False],
"microarch": ["detect", "none"]
}
default_options = {
"shared": True,
"python": False,
"tests": False,
"docs": False,
"coverage": False,
"microarch": "none",
"RingDecomposerLib:shared": False,
"nauty:shared": False
}
exports = "dev/conan/*.py"
exports_sources = [
"dev/conan/hook.cmake",
"dev/conan/glue/*",
"dev/cmake/*",
"cmake/*",
"extern/*",
"src/*",
"doc/*",
"test/*",
"python/*",
"CMakeLists.txt",
]
requires = [
"scine_utilities/[=10.0.0]",
"RingDecomposerLib/1.1.3",
"nauty/2.7r1"
]
cmake_name = "Molassembler"
def package_info(self):
super().package_info()
self.cpp_info.components["Molassembler"].cxxflags = ["-fopenmp"]
self.cpp_info.components["Molassembler"].sharedlinkflags = ["-fopenmp"]
self.cpp_info.components["Molassembler"].exelinkflags = ["-fopenmp"]