text: import os
  
  from conans import CMake, ConanFile, tools
  
  
  class DemoaTestConan(ConanFile):
      settings = "os", "compiler", "build_type", "arch"
      generators = "cmake"
  
      def build(self):
          cmake = CMake(self)
          cmake.configure()
          cmake.build()
  
      def imports(self):
          self.copy("*.dll", dst="bin", src="bin")
          self.copy("*.dylib*", dst="bin", src="lib")
          self.copy("*.so*", dst="bin", src="lib")
  
      def test(self):
          if not tools.cross_building(self):
              os.chdir("bin")
              self.run(".%sexample" % os.sep)
  