You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
713B

  1. from conans import ConanFile, CMake
  2. import os
  3. class TestGlew(ConanFile):
  4. settings = "os", "compiler", "build_type", "arch"
  5. generators = "cmake"
  6. def build(self):
  7. cmake = CMake(self)
  8. self.run('cmake "%s" %s' % (self.conanfile_directory, cmake.command_line))
  9. self.run("cmake --build . %s" % cmake.build_config)
  10. def test(self):
  11. self.run(os.sep.join([".","bin", "testGlew"]))
  12. def imports(self):
  13. if self.settings.os == "Windows":
  14. self.copy(pattern="*.dll", dst="bin", src="bin")
  15. self.copy(pattern="*.pdb", dst="bin", src="bin")
  16. if self.settings.os == "Macos":
  17. self.copy(pattern="*.dylib", dst="bin", src="lib")