playground/cmake_demo/simple_caller/conanfile.py
2024-08-31 22:26:15 -04:00

24 lines
673 B
Python

from conan import ConanFile
from conan.tools.cmake import CMake, cmake_layout
class SimpleCallerConan(ConanFile):
name = "simple_caller"
version = "1.0.0"
settings = "os", "compiler", "build_type", "arch"
requires = "simple_library/1.0.0@ras/stable" # Replace with the actual reference
generators = "CMakeDeps", "CMakeToolchain"
def layout(self):
cmake_layout(self)
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 build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()