conanfile.py 754 B

1234567891011121314151617181920
  1. import os
  2. from conans import ConanFile
  3. class GlmConan(ConanFile):
  4. name = "glm"
  5. version = "0.9.8"
  6. generators = "txt"
  7. url="https://github.com/g-truc/glm"
  8. description="OpenGL Mathematics (GLM)"
  9. license = "https://github.com/g-truc/glm/blob/manual/copying.txt"
  10. exports = ["FindGLM.cmake", "lib_licenses/*", os.sep.join([".", "..", "..", "*"])]
  11. def build(self):
  12. self.output.warn("No compilation necessary for GLM")
  13. self.output.warn(os.sep.join([".", "..", "..", "*"]))
  14. def package(self):
  15. self.copy("FindGLM.cmake", ".", ".")
  16. self.copy("*", src="glm", dst=os.sep.join([".", "include", "glm"]))
  17. self.copy("lib_licenses/license*", dst="licenses", ignore_case=True, keep_path=False)