from conan import ConanFile from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout from conan.tools.files import copy import os class klistConan(ConanFile): name = "klist" version = "0.0.1" description = "A list library" url = "https://git.kundeng.us/phoenix/klist" homepage = "https://git.kundeng.us/phoenix/klist" settings = "os", "compiler", "build_type", "arch" generators = "CMakeToolchain", "CMakeDeps" # Only add dependencies if needed requires = "cmocka/1.1.8" def layout(self): cmake_layout(self) def build_requirements(self): self.tool_requires("cmake/4.4.3") # def generate(self): # tc = CMakeToolchain(self) # tc.generate() def build(self): cmake = CMake(self) cmake.configure() cmake.build() def package(self): cmake = CMake(self) cmake.install() def package_info(self): self.cpp_info.libs = ["klistlib"] self.cpp_info.includedirs = ["include"]