forked from hhenson/hgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
37 lines (29 loc) · 1.04 KB
/
conanfile.py
File metadata and controls
37 lines (29 loc) · 1.04 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
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMakeDeps, cmake_layout
class HgraphCppConan(ConanFile):
name = "hgraph-cpp"
version = "0.0.0"
# We don't produce a library package here; this recipe is for dependency resolution + toolchain files
package_type = "application"
settings = "os", "arch", "compiler", "build_type"
options = {
"shared": [True, False],
}
default_options = {
"shared": False,
}
# Dependencies used by the C++ engine. Nanobind is discovered via the selected Python interpreter
# and is NOT provided by Conan (it is a Python package).
requires = (
"fmt/10.1.0",
"backward-cpp/1.6",
)
def layout(self):
# Produce the canonical CMake layout so files are generated under the build dir
cmake_layout(self)
def generate(self):
# Export CMake dependency and toolchain files for our build
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.generate()