-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathconanfile2.py
More file actions
54 lines (45 loc) · 1.56 KB
/
Copy pathconanfile2.py
File metadata and controls
54 lines (45 loc) · 1.56 KB
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
import os # noqa: D100
from conan import ConanFile
from conan.tools.cmake import CMake
from conan.tools.files import copy
class simCenterBackendApps(ConanFile): # noqa: D101
name = "SimCenterBackendApplications"
version = "1.2.2"
description = "Backend applications for SimCenter software"
license = "BSD 3-Clause"
author = "Michael Gardner mhgardner@berkeley.edu"
url = "https://github.com/NHERI-SimCenter/SimCenterBackendApplications"
settings = "os", "compiler", "build_type", "arch"
package_type = "application"
short_paths = True
default_options = { # noqa: RUF012
"libcurl/*:with_ssl": "openssl",
"boost/*:without_fiber": True,
}
generators = "CMakeToolchain", "CMakeDeps"
build_policy = "missing"
requires = [ # noqa: RUF012
"jansson/2.14",
"zlib/1.3.1",
"libcurl/8.12.1",
"eigen/3.4.0",
"clara/1.1.5",
"nanoflann/1.6.0",
"nlopt/2.10.0",
"kissfft/131.1.0",
"boost/1.88.0",
"nlohmann_json/3.11.3",
]
def build(self): # noqa: D102
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self): # noqa: D102
copy(self, "LICENSE", self.source_folder,
os.path.join(self.package_folder, "licenses"))
cmake = CMake(self)
cmake.install()
copy(self, "*", os.path.join(self.source_folder, "applications"),
os.path.join(self.package_folder, "bin"))
def package_info(self): # noqa: D102
self.cpp_info.bindirs = ["bin"]