Skip to content
Snippets Groups Projects
Select Git revision
  • 667d164bee2c0cab008b50e9c96e97533f11cdb7
  • develop default protected
  • feature/advection
  • feature/composite-scheme-other-fluxes
  • origin/stage/bouguettaia
  • save_clemence
  • feature/local-dt-fsi
  • feature/variational-hydro
  • feature/gmsh-reader
  • feature/reconstruction
  • feature/kinetic-schemes
  • feature/composite-scheme-sources
  • feature/serraille
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

PugsTraits.hpp

Blame
  • conanfile.py 1.22 KiB
    from conans import ConanFile, CMake
    from conans.tools import load
    import re
    
    
    def get_version():
        try:
            content = load("include/CLI/Version.hpp")
            version = re.search(r'#define CLI11_VERSION "(.*)"', content).group(1)
            return version
        except Exception:
            return None
    
    
    class CLI11Conan(ConanFile):
        name = "CLI11"
        version = get_version()
        description = "Command Line Interface toolkit for C++11"
        topics = ("cli", "c++11", "parser", "cli11")
        url = "https://github.com/CLIUtils/CLI11"
        homepage = "https://github.com/CLIUtils/CLI11"
        author = "Henry Schreiner <hschrein@cern.ch>"
        license = "BSD-3-Clause"
    
        settings = "os", "compiler", "arch", "build_type"
        exports_sources = (
            "LICENSE",
            "README.md",
            "include/*",
            "extern/*",
            "cmake/*",
            "CMakeLists.txt",
            "tests/*",
        )
    
        def build(self):  # this is not building a library, just tests
            cmake = CMake(self)
            cmake.definitions["CLI11_EXAMPLES"] = "OFF"
            cmake.definitions["CLI11_SINGLE_FILE"] = "OFF"
            cmake.configure()
            cmake.build()
            cmake.test()
            cmake.install()
    
        def package_id(self):
            self.info.header_only()