本文整理汇总了Python中conans.CMake.install方法的典型用法代码示例。如果您正苦于以下问题:Python CMake.install方法的具体用法?Python CMake.install怎么用?Python CMake.install使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类conans.CMake
的用法示例。
在下文中一共展示了CMake.install方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: package
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def package(self):
cmake = CMake(self)
cmake.definitions["PEGTL_BUILD_TESTS"] = "OFF"
cmake.definitions["PEGTL_BUILD_EXAMPLES"] = "OFF"
cmake.definitions["PEGTL_INSTALL_DOC_DIR"] = "licenses"
cmake.configure()
cmake.install()
示例2: package
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def package(self):
"""Run CMake install"""
cmake = CMake(self)
cmake.definitions["NSSV_OPT_BUILD_TESTS"] = "OFF"
cmake.definitions["NSSV_OPT_BUILD_EXAMPLES"] = "OFF"
cmake.configure()
cmake.install()
示例3: build
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def build(self):
cmake = CMake(self)
cmake.definitions["CMAKE_TOOLCHAIN_FILE"] = os.path.join(os.getcwd(), 'conan_paths.cmake')
cmake.definitions["BUILD_SHARED_LIBS"] = self.options.shared
cmake.configure()
cmake.build()
cmake.install()
示例4: build
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def build(self):
cmake = CMake(self)
cmake.definitions["WITH_BOOST_IOSTREAMS"] = self.options.boost_iostreams
cmake.definitions["WITH_CONAN"] = True
cmake.configure()
cmake.build()
cmake.install()
示例5: package
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def package(self):
cmake = CMake(self)
cmake.definitions["BUILD_TESTING"] = "OFF"
cmake.definitions["CATCH_INSTALL_DOCS"] = "OFF"
cmake.definitions["CATCH_INSTALL_HELPERS"] = "ON"
cmake.configure()
cmake.install()
self.copy(pattern="LICENSE.txt", dst="licenses")
示例6: build
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def build(self):
"""Configure, build and install FlatBuffers using CMake.
"""
self._inject_magic_lines()
cmake = CMake(self)
cmake.definitions["FLATBUFFERS_BUILD_TESTS"] = False
cmake.definitions["FLATBUFFERS_BUILD_SHAREDLIB"] = self.options.shared
cmake.configure()
cmake.build()
cmake.install()
示例7: package
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def package(self):
cmake = CMake(self)
cmake.definitions["RANGE_V3_TESTS"] = "OFF"
cmake.definitions["RANGE_V3_EXAMPLES"] = "OFF"
cmake.definitions["RANGE_V3_PERF"] = "OFF"
cmake.definitions["RANGE_V3_DOCS"] = "OFF"
cmake.definitions["RANGE_V3_HEADER_CHECKS"] = "OFF"
cmake.configure()
cmake.install()
self.copy("LICENSE.txt", dst="licenses", ignore_case=True, keep_path=False)
示例8: build
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def build(self):
cmake = CMake(self)
if 'build_test' in os.environ or 'build_all' in os.environ:
cmake.definitions['BUILD_TEST'] = "1"
if 'build_server' in os.environ or 'build_all' in os.environ:
cmake.definitions['BUILD_SERVER'] = "1"
if 'create_package' in os.environ:
cmake.definitions['CREATE_PACKAGE'] = "1"
cmake.configure(source_folder='{}'.format(self.source_folder))
cmake.build()
cmake.install()
if 'create_package' in os.environ:
cmake.build(target="package")
if 'create_package_debug' in os.environ:
cmake.build(target="package_debug")
示例9: build
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def build(self):
cmake = CMake(self)
cmake.configure(source_folder=path.join(self.source_folder, "conan-wrapper"))
cmake.build()
cmake.install()
示例10: build
# 需要导入模块: from conans import CMake [as 别名]
# 或者: from conans.CMake import install [as 别名]
def build(self):
cmake = CMake(self)
os.makedirs("./buildit")
cmake.configure(defs=self.parseOptionsToCMake(), build_dir="./buildit")
cmake.build()
cmake.install()