-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
31 lines (23 loc) · 747 Bytes
/
conanfile.py
File metadata and controls
31 lines (23 loc) · 747 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
import os
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMakeDeps
from conan.tools.layout import cmake_layout
class CompressorRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
def requirements(self):
self.requires("opencv/4.5.5")
self.requires("tensorflow-lite/2.10.0")
tools_requires= "pkgconf/1.7.4"
default_options = {
"opencv:shared": False,
"opencv:with_gtk": False,
"opencv:with_v4l": False,
"opencv:with_ffmpeg": False,
}
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
tc.generate()
def layout(self):
cmake_layout(self)