-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
28 lines (22 loc) · 985 Bytes
/
Copy pathconanfile.py
File metadata and controls
28 lines (22 loc) · 985 Bytes
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
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout, CMakeDeps
class titleRecipe(ConanFile): # TODO
name = "title" # TODO
version = "0.1.0"
settings = "os", "compiler", "build_type", "arch"
def layout(self):
cmake_layout(self)
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
# This recipe is aimed at a consumer scenario. If you want to create
# a package, then you should add the following attributes/methods:
# * exports_sources attribute (https://docs.conan.io/2/reference/conanfile/attributes.html#exports-sources)
# * package method (https://docs.conan.io/2/reference/conanfile/methods/package.html)
# * package_info method (https://docs.conan.io/2/reference/conanfile/methods/package_info.html)