当前位置: 首页>>代码示例>>Python>>正文


Python CMake.install方法代码示例

本文整理汇总了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()
开发者ID:ColinH,项目名称:PEGTL,代码行数:9,代码来源:conanfile.py

示例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()
开发者ID:martinmoene,项目名称:status_value,代码行数:9,代码来源:conanfile.py

示例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()
开发者ID:wdobbe,项目名称:libtftp,代码行数:9,代码来源:conanfile.py

示例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()
开发者ID:hoxnox,项目名称:snappystream,代码行数:9,代码来源:conanfile.py

示例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")
开发者ID:77,项目名称:Catch,代码行数:11,代码来源:conanfile.py

示例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()
开发者ID:royalharsh,项目名称:flatbuffers,代码行数:12,代码来源:conanfile.py

示例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)
开发者ID:ericniebler,项目名称:range-v3,代码行数:13,代码来源:conanfile.py

示例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")
开发者ID:inexor-game,项目名称:code,代码行数:18,代码来源:conanfile.py

示例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()
开发者ID:nanopb,项目名称:nanopb,代码行数:7,代码来源:conanfile.py

示例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()
开发者ID:BaroboRobotics,项目名称:civetweb,代码行数:8,代码来源:conanfile.py


注:本文中的conans.CMake.install方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。