mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 14:54:35 +00:00
Updates conan recipe and test_package
This commit is contained in:
parent
be53cebcd3
commit
dfe28ab87d
@ -3,18 +3,15 @@ from conans import ConanFile
|
||||
|
||||
class GlmConan(ConanFile):
|
||||
name = "glm"
|
||||
version = "master"
|
||||
version = "0.9.8.5"
|
||||
generators = "txt"
|
||||
url="https://github.com/g-truc/glm"
|
||||
description="OpenGL Mathematics (GLM)"
|
||||
license = "https://github.com/g-truc/glm/blob/manual/copying.txt"
|
||||
url = "https://github.com/g-truc/glm"
|
||||
description = "OpenGL Mathematics (GLM)"
|
||||
license = "The Happy Bunny License (Modified MIT License)"
|
||||
exports_sources = ["FindGLM.cmake", os.sep.join(["..", "..", "glm*"])]
|
||||
exports = "lib_licenses/*"
|
||||
|
||||
def build(self):
|
||||
self.output.info("No compilation necessary for GLM")
|
||||
|
||||
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)
|
||||
self.copy("lib_licenses/license*", dst="licenses", ignore_case=True, keep_path=False)
|
||||
|
@ -7,9 +7,8 @@ class TestGlm(ConanFile):
|
||||
|
||||
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)
|
||||
cmake.configure()
|
||||
cmake.build()
|
||||
|
||||
def test(self):
|
||||
self.run(os.sep.join([".","bin", "testGlm"]))
|
||||
|
||||
self.run(os.sep.join([".", "bin", "testGlm"]))
|
||||
|
Loading…
Reference in New Issue
Block a user