glm/util/conan-package/conanfile.py

21 lines
712 B
Python
Raw Normal View History

2017-06-24 07:20:14 +00:00
import os
from conans import ConanFile
class GlmConan(ConanFile):
name = "glm"
version = "master"
generators = "txt"
url="https://github.com/g-truc/glm"
description="OpenGL Mathematics (GLM)"
license = "https://github.com/g-truc/glm/blob/manual/copying.txt"
exports_sources = ["FindGLM.cmake", os.sep.join(["..", "..", "glm*"])]
2017-07-24 05:17:37 +00:00
exports = "lib_licenses/*"
2017-06-24 07:20:14 +00:00
def build(self):
2017-07-24 05:17:37 +00:00
self.output.info("No compilation necessary for GLM")
2017-06-24 07:20:14 +00:00
def package(self):
self.copy("FindGLM.cmake", ".", ".")
self.copy("*", src="glm", dst=os.sep.join([".", "include", "glm"]))
self.copy("lib_licenses/license*", dst="licenses", ignore_case=True, keep_path=False)