mirror of
https://github.com/g-truc/glm.git
synced 2024-11-17 07:14:36 +00:00
20 lines
574 B
Python
20 lines
574 B
Python
from conans import ConanFile, CMake
|
|
import os
|
|
|
|
channel = os.getenv("CONAN_CHANNEL", "testing")
|
|
username = os.getenv("CONAN_USERNAME", "g-truc")
|
|
|
|
class TestGlm(ConanFile):
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
requires = "glm/0.9.8@%s/%s" % (username, channel)
|
|
generators = "cmake"
|
|
|
|
def build(self):
|
|
cmake = CMake(self)
|
|
self.run('cmake "%s" %s' % (self.conanfile_directory, cmake.command_line))
|
|
self.run("cmake --build . %s" % cmake.build_config)
|
|
|
|
def test(self):
|
|
self.run(os.sep.join([".","bin", "testGlm"]))
|
|
|