conanfile.py 574 B

12345678910111213141516171819
  1. from conans import ConanFile, CMake
  2. import os
  3. channel = os.getenv("CONAN_CHANNEL", "testing")
  4. username = os.getenv("CONAN_USERNAME", "g-truc")
  5. class TestGlm(ConanFile):
  6. settings = "os", "compiler", "build_type", "arch"
  7. requires = "glm/0.9.8@%s/%s" % (username, channel)
  8. generators = "cmake"
  9. def build(self):
  10. cmake = CMake(self)
  11. self.run('cmake "%s" %s' % (self.conanfile_directory, cmake.command_line))
  12. self.run("cmake --build . %s" % cmake.build_config)
  13. def test(self):
  14. self.run(os.sep.join([".","bin", "testGlm"]))