-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
37 lines (27 loc) · 882 Bytes
/
conanfile.py
File metadata and controls
37 lines (27 loc) · 882 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
29
30
31
32
33
34
35
36
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake
class TestAvro(ConanFile):
settings = "os", "arch", "compiler", "build_type"
def set_name(self):
return "TestAvro"
def set_version(self):
return "0.0"
def requirements(self):
self.requires("libavrocpp/1.10.1@")
def configure(self):
if self.settings.compiler == "Visual Studio":
self.options["boost"].magic_autolink = False
self.options["boost"].without_url = True
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.configure()
cmake.install()
def generate(self):
tc = CMakeToolchain(self)
tc.generate()
cd = CMakeDeps(self)
cd.generate()