File indexing completed on 2025-02-16 13:00:38
0001 from conans import ConanFile, CMake 0002 import os 0003 0004 class KArchiveTestConan(ConanFile): 0005 settings = "os", "compiler", "build_type", "arch" 0006 generators = "cmake" 0007 0008 def build(self): 0009 cmake = CMake(self) 0010 # Current dir is "test_package/build/<build_id>" and CMakeLists.txt is in "test_package" 0011 cmake.configure(source_dir=self.conanfile_directory, build_dir="./") 0012 cmake.build() 0013 0014 def imports(self): 0015 self.copy("*.dll", dst="bin", src="bin") 0016 self.copy("*.dylib*", dst="bin", src="lib") 0017 0018 def test(self): 0019 os.chdir("bin") 0020 self.run(".%sexample" % os.sep)