[requires]
soci/4.0.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]
soci/4.0.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("soci/4.0.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:
SOCI
soci::soci
soci_core => SOCI::soci_core_static
soci.pc
soci_core => soci-soci_core.pc
A simple use case using the CMake file name and the global target:
# ...
find_package(SOCI REQUIRED)
# ...
target_link_libraries(YOUR_TARGET soci::soci)
These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the soci
homepage listed above:
#include "soci/backend-loader.h"
#include "soci/bind-values.h"
#include "soci/blob-exchange.h"
#include "soci/blob.h"
#include "soci/boost-fusion.h"
#include "soci/boost-gregorian-date.h"
#include "soci/boost-optional.h"
#include "soci/boost-tuple.h"
#include "soci/callbacks.h"
#include "soci/column-info.h"
#include "soci/connection-parameters.h"
#include "soci/connection-pool.h"
#include "soci/error.h"
#include "soci/exchange-traits.h"
#include "soci/into-type.h"
#include "soci/into.h"
#include "soci/logger.h"
#include "soci/noreturn.h"
#include "soci/once-temp-type.h"
#include "soci/prepare-temp-type.h"
#include "soci/procedure.h"
#include "soci/query_transformation.h"
#include "soci/ref-counted-prepare-info.h"
#include "soci/ref-counted-statement.h"
#include "soci/row-exchange.h"
#include "soci/row.h"
#include "soci/rowid-exchange.h"
#include "soci/rowid.h"
#include "soci/rowset.h"
#include "soci/session.h"
#include "soci/soci-backend.h"
#include "soci/soci-config.h"
#include "soci/soci-platform.h"
#include "soci/soci-simple.h"
#include "soci/soci.h"
#include "soci/statement.h"
#include "soci/transaction.h"
#include "soci/type-conversion-traits.h"
#include "soci/type-conversion.h"
#include "soci/type-holder.h"
#include "soci/type-ptr.h"
#include "soci/type-wrappers.h"
#include "soci/unsigned-types.h"
#include "soci/use-type.h"
#include "soci/use.h"
#include "soci/values-exchange.h"
#include "soci/values.h"
#include "soci/version.h"