-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconanfile.py
More file actions
25 lines (18 loc) · 773 Bytes
/
conanfile.py
File metadata and controls
25 lines (18 loc) · 773 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
# pylint: disable-all
import os
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain
class CompressorRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps"
def requirements(self):
self.requires("spdlog/1.16.0", options={"use_std_fmt": True, "no_exceptions": True}) # type: ignore
self.requires("magic_enum/0.9.7") # type: ignore
self.requires("cli11/2.6.0") # type: ignore
# Conditions on cmake variables set from cmake/project_options
if os.environ["CMAKE_ENABLE_TEST"] == "ON":
self.requires("gtest/1.17.0") # type: ignore
def generate(self):
tc = CMakeToolchain(self)
tc.user_presets_path = ""
tc.generate()