-
Notifications
You must be signed in to change notification settings - Fork 38
/
conanfile.py
31 lines (26 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
29
30
31
from conan import ConanFile
from conan.tools.cmake import CMake, cmake_layout
from conan.tools.files import copy
class GTProxyRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeToolchain", "CMakeDeps"
def requirements(self):
# self.requires("cpp-httplib/[~0.15]")
self.requires("fmt/10.2.1")
self.requires("glm/[~0.9.9]")
self.requires("magic_enum/[~0.9]")
self.requires("nlohmann_json/[~3.11]")
self.requires("pcg-cpp/cci.20220409")
self.requires("spdlog/[~1.13]")
def layout(self):
cmake_layout(self)
# def generate(self):
# for dep in self.dependencies.values():
# if dep.cpp_info.bindirs:
# copy(self, "*.dll", dep.cpp_info.bindirs[0], self.build_folder)
# if dep.cpp_info.libdirs:
# copy(self, "*.lib", dep.cpp_info.libdirs[0], self.build_folder)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()