-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
28 lines (24 loc) · 1.02 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
from conan import ConanFile
from conan.tools.env import VirtualBuildEnv
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake
# This recipe is only to install dependencies to build MdtModelView
# The recipes to create packages are in packaging/conan/ subfolder
class MdtModelViewConan(ConanFile):
name = "mdtmodelview"
license = "LGPL-3.0-or-later"
url = "https://gitlab.com/scandyna/mdtmodelview"
description = "Set of libraries extending the Qt model-view framework."
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = {"shared": True}
generators = "CMakeDeps", "VirtualBuildEnv"
def requirements(self):
self.requires("qt/5.15.6")
self.requires("mdtnumeric/0.0.1@scandyna/testing")
def build_requirements(self):
self.test_requires("catch2/2.13.9")
self.test_requires("mdtcmakemodules/0.20.0@scandyna/testing")
def generate(self):
tc = CMakeToolchain(self)
#tc.variables["FROM_CONAN_PROJECT_VERSION"] = self.version
tc.generate()