tankefugl / conan-hdf5

Conan recipe for HDF5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GCC Conan Clang Conan MSVC Conan Download

Conan.io recipe for hdf5.

The recipe generates library packages, which can be found at Bintray. The package is usually consumed using the conan install command or a conanfile.txt.

How to use this package

  1. Add remote to conan's package registry.txt:

    $ conan remote add sintef https://api.bintray.com/conan/sintef-ocean/conan
  2. Using conanfile.txt in your project with cmake

    Add a conanfile.txt to your project. This file describes dependencies and your configuration of choice, e.g.:

    [requires]
    hdf5/[>=1.8.21]@sintef/stable
    
    [options]
    
    
    [imports]
    licenses, * -> ./licenses @ folder=True
    
    [generators]
    cmake_paths
    cmake_find_package
    

    Insert into your CMakeLists.txt something like the following lines:

    cmake_minimum_required(VERSION 3.13)
    project(TheProject CXX)
    
    include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
    find_package(HDF5 MODULE REQUIRED)
    
    add_executable(the_executor code.cpp)
    target_link_libraries(the_executor HDF5::HDF5)

    Then, do

    $ mkdir build && cd build
    $ conan install .. -s build_type=<build_type>

    where <build_type> is e.g. Debug or Release. You can now continue with the usual dance with cmake commands for configuration and compilation. For details on how to use conan, please consult Conan.io docs

Package options

Option Default Domain
shared False [True, False]
fPIC True [True, False]
enable_cxx True [True, False]
hl True [True, False]
threadsafe True [True, False]
with_zlib True [True, False]
szip_support None [None, "with_libaec", "with_szip"]
szip_encoding False [True, False]
allow_unsupported True [True, False]

Known recipe issues

(Add known issues/shortcomings here)

About

Conan recipe for HDF5

License:Other


Languages

Language:Python 92.7%Language:CMake 4.1%Language:C++ 3.2%