-
Notifications
You must be signed in to change notification settings - Fork 1
/
conanfile.py
38 lines (33 loc) · 1.27 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
from dev.conan.base import ScineConan
class ScineSwooseConan(ScineConan):
name = "scine_swoose"
version = "2.1.0"
url = "https://github.com/qcscine/swoose"
description = """
Treat large molecular systems with self-parametrizing system-focused atomistic
models"""
options = {
"python": [True, False],
"tests": [True, False],
"coverage": [True, False],
"microarch": ["detect", "none"],
"database": [True, False]
}
default_options = {"python": False, "tests": False,
"coverage": False, "microarch": "none",
"database": False}
exports = "dev/conan/*.py"
exports_sources = ["dev/cmake/*", "src/*", "CMakeLists.txt", "README.rst",
"LICENSE.txt", "dev/conan/hook.cmake", "dev/conan/glue/*"]
requires = ["yaml-cpp/0.6.3",
"scine_utilities/10.0.0",
"scine_molassembler/3.0.0"]
cmake_name = "Swoose"
def requirements(self):
self.cmake_definitions = {
"SWOOSE_COMPILE_DATABASE": self.options.get_safe("database")
}
if self.options.get_safe("database"):
self.requires("scine_database/1.4.0")
if hasattr(super(), "requirements"):
super().requirements()