-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
32 lines (25 loc) · 958 Bytes
/
Copy pathconanfile.py
File metadata and controls
32 lines (25 loc) · 958 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
32
from conan import ConanFile
from conans.client.generators.cmake import DepsCppCmake
from conans.model import Generator
from conans.tools import OSInfo
class CMakePrefixPathsGenerator(Generator):
name = "CMakePrefixPaths"
@property
def filename(self):
return "CMakePrefixPaths.cmake"
@property
def content(self):
deps = DepsCppCmake(self.deps_build_info, self.name)
return "list(PREPEND CMAKE_PREFIX_PATH {deps.build_paths})".format(deps=deps)
class GameConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
requires = (
"qts-gtest/1.17.0",
)
generators = "CMakePrefixPathsGenerator"
def requirements(self):
info = OSInfo()
self.output.warn(info.is_linux)
self.output.warn(info.linux_distro)
if info.is_linux and info.linux_distro in ("ubuntu"):
self.requires("qts-linuxdeployqt/eba7f9c0d62ca7d204b40789c5b24ce87a518fa5")