-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
47 lines (40 loc) · 1.13 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from conans import ConanFile # , CMake
#from conan.tools.cmake import CMakeDeps
from conan.tools.cmake import CMake, CMakeToolchain, CMakeDeps
class b0berman(ConanFile):
settings = "os", "compiler", "build_type", "arch"
requires = [
"glbinding/3.1.0",
"opengl/system",
"glfw/3.3.8",
"nlohmann_json/3.11.2",
"lyra/1.6.1",
"spdlog/1.11.0",
"freeimage/3.18.0",
"glm/0.9.9.8",
"boost/1.81.0",
"freetype/2.13.0"
]
generators = "CMakeDeps"
default_options = {
"freeimage:with_jpeg": False,
"freeimage:with_jpeg2000": False,
}
def imports(self):
self.copy("*.dll", dst="bin", src="bin")
self.copy("*.dylib*", dst="bin", src="lib")
def generate(self):
tc = CMakeToolchain(self)
tc.generate()
cmake = CMakeDeps(self)
cmake.generate()
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
#cmake = CMake(self)
# cmake.build()
pass
#cmake = CMake(self)
# cmake.configure()
# cmake.build()