-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
27 lines (23 loc) · 947 Bytes
/
Copy pathconanfile.py
File metadata and controls
27 lines (23 loc) · 947 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
from conan import ConanFile
from conan.tools.env import VirtualBuildEnv
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake
import os
class MdtPlainTextConan(ConanFile):
name = "mdtplaintext"
license = "BSD 3-Clause"
url = "https://gitlab.com/scandyna/mdtplaintext"
description = "Provides some libraries to read and write simple plain text using the boost Spirit library, typically CSV."
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False]}
default_options = {"shared": True}
generators = "CMakeDeps", "VirtualBuildEnv"
def requirements(self):
self.requires("boost/1.88.0")
self.requires("qt/6.8.3")
def build_requirements(self):
self.test_requires("catch2/2.13.10")
self.test_requires("mdtcmakemodules/0.21.0@scandyna/testing")
def generate(self):
tc = CMakeToolchain(self)
#tc.variables["FROM_CONAN_PROJECT_VERSION"] = self.version
tc.generate()