2017-06-25 18:15:34 +00:00
|
|
|
from conans import ConanFile, CMake
|
|
|
|
import os
|
|
|
|
|
|
|
|
class TestGlew(ConanFile):
|
|
|
|
settings = "os", "compiler", "build_type", "arch"
|
|
|
|
generators = "cmake"
|
|
|
|
|
|
|
|
def build(self):
|
|
|
|
cmake = CMake(self)
|
2017-11-18 03:33:33 +00:00
|
|
|
cmake.configure()
|
|
|
|
cmake.build()
|
2017-06-25 18:15:34 +00:00
|
|
|
|
|
|
|
def test(self):
|
|
|
|
self.run(os.sep.join([".","bin", "testGlew"]))
|
|
|
|
|
|
|
|
def imports(self):
|
|
|
|
if self.settings.os == "Windows":
|
|
|
|
self.copy(pattern="*.dll", dst="bin", src="bin")
|
2017-06-30 05:23:23 +00:00
|
|
|
self.copy(pattern="*.pdb", dst="bin", src="bin")
|
2017-06-25 18:15:34 +00:00
|
|
|
if self.settings.os == "Macos":
|
|
|
|
self.copy(pattern="*.dylib", dst="bin", src="lib")
|