-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
31 lines (25 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
# This file is managed by Conan, contents will be overwritten.
# To keep your changes, remove these comment lines, but the plugin won't be able to modify your requirements
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMakeToolchain
class ConanApplication(ConanFile):
package_type = "application"
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps"
def layout(self):
cmake_layout(self)
def generate(self):
tc = CMakeToolchain(self)
tc.user_presets_path = False
tc.generate()
def configure(self):
self.options['glad'].shared = False
self.options['glad'].fPIC = True
self.options['glad'].no_loader = False
self.options['glad'].spec = 'gl'
self.options['glad'].gl_profile = 'core'
self.options['glad'].gl_version = '4.5'
def requirements(self):
requirements = self.conan_data.get('requirements', [])
for requirement in requirements:
self.requires(requirement)