Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819202122232425
  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)