[requires]
si/2.5.3
NoteSimplest use case consuming this recipe and assuming CMake as your local build tool:
If you are a new Conan user, we recommend reading the how to consume packages tutorial.If you need additional assistance, please ask a question in the Conan Center Index repository.
[requires]
si/2.5.3
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout
class ExampleRecipe(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"
def requirements(self):
self.requires("si/2.5.3")
def layout(self):
cmake_layout(self)
Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):
$ conan install conanfile.txt --build=missing
Useful information to take into account to consume this library:
These are the main declared targets:
SI
SI::SI
si.pc
A simple use case using the CMake file name and the global target:
# ...
find_package(SI REQUIRED)
# ...
target_link_libraries(YOUR_TARGET SI::SI)
These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the si
homepage listed above:
#include "SI/absorbed_dose.h"
#include "SI/acceleration.h"
#include "SI/angle.h"
#include "SI/angular_frequency.h"
#include "SI/area.h"
#include "SI/astronomic.h"
#include "SI/catalytic_activity.h"
#include "SI/detail/cross_unit_operations.h"
#include "SI/detail/detail.h"
#include "SI/detail/eps_equal.h"
#include "SI/detail/number_parser.h"
#include "SI/detail/operator_helpers.h"
#include "SI/detail/unit.h"
#include "SI/detail/unit_cast.h"
#include "SI/detail/unit_symbol.h"
#include "SI/electric_capacity.h"
#include "SI/electric_charge.h"
#include "SI/electric_conductance.h"
#include "SI/electric_current.h"
#include "SI/electric_potential.h"
#include "SI/electric_resistance.h"
#include "SI/energy.h"
#include "SI/equivalent_dose.h"
#include "SI/flow.h"
#include "SI/force.h"
#include "SI/frequency.h"
#include "SI/illuminance.h"
#include "SI/inductance.h"
#include "SI/length.h"
#include "SI/luminosity.h"
#include "SI/luminous_flux.h"
#include "SI/magnetic_field.h"
#include "SI/magnetic_flux.h"
#include "SI/mass.h"
#include "SI/momentum.h"
#include "SI/power.h"
#include "SI/pressure.h"
#include "SI/radioactivity.h"
#include "SI/solid_angle.h"
#include "SI/stream.h"
#include "SI/substance.h"
#include "SI/temperature.h"
#include "SI/time.h"
#include "SI/velocity.h"