Added conan packaging configuration.
This commit is contained in:
19
util/conan-package/test_package/conanfile.py
Normal file
19
util/conan-package/test_package/conanfile.py
Normal file
@@ -0,0 +1,19 @@
|
||||
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/master@%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"]))
|
||||
|
||||
Reference in New Issue
Block a user