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.

26 lines
697B

  1. import os
  2. from conans import ConanFile, CMake, tools
  3. class ScopeguardTestConan(ConanFile):
  4. settings = "os", "compiler", "build_type", "arch"
  5. generators = "cmake"
  6. def build(self):
  7. cmake = CMake(self)
  8. # Current dir is "test_package/build/<build_id>" and CMakeLists.txt is
  9. # in "test_package"
  10. cmake.configure()
  11. cmake.build()
  12. def imports(self):
  13. self.copy("*.dll", dst="bin", src="bin")
  14. self.copy("*.dylib*", dst="bin", src="lib")
  15. self.copy('*.so*', dst='bin', src='lib')
  16. def test(self):
  17. if not tools.cross_building(self.settings):
  18. os.chdir("bin")
  19. self.run(".%sexample" % os.sep)