-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconanfile.py
39 lines (32 loc) · 1.14 KB
/
conanfile.py
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
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMakeToolchain
class HolovibesRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps"
default_options = {
"qt/*:shared": True,
"qt/*:widgets": True,
"qt/*:qtcharts": True,
"spdlog/*:header_only": True,
}
def requirements(self):
self.requires("qt/6.6.0")
self.requires("boost/1.83.0")
self.requires("glm/0.9.9.8")
self.requires("gtest/1.14.0")
self.requires("nlohmann_json/3.11.2")
self.requires("opencv/4.5.5")
self.requires("opengl/system")
self.requires("spdlog/1.12.0")
# Override requirements to resolve dependencies
# versions conflicts
self.requires("freetype/2.13.2", override=True)
self.requires("libpng/1.6.42", override=True)
def build_requirements(self):
self.tool_requires("doxygen/1.9.4")
def layout(self):
cmake_layout(self)
self.folders.build = "build/bin"
def generate(self):
toolchain = CMakeToolchain(self, 'Ninja')
toolchain.generate()