我刚刚开始探索柯南和cmake来构建和打包C ++文件。这是一个示例conanfile.py
from conans import ConanFile,CMake
class PocoTimerConan(ConanFile):
settings = "os","compiler","build_type","arch"
requires = "Poco/1.7.8p3@pocoproject/stable"
generators = "cmake","gcc","txt"
default_options = {"Poco:shared": True,"OpenSSL:shared": True}
def imports(self):
self.copy("*.dll",dst="bin",src="bin") # From bin to bin
self.copy("*.dylib*",src="lib") # From lib to bin
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
是否有任何选择可以在不使用cmake的情况下进行构建。预先感谢。