[requires]
libspatialite/5.1.0
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]
libspatialite/5.1.0
[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("libspatialite/5.1.0")
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:
libspatialite
libspatialite::libspatialite
spatialite.pc
A simple use case using the CMake file name and the global target:
# ...
find_package(libspatialite REQUIRED)
# ...
target_link_libraries(YOUR_TARGET libspatialite::libspatialite)
These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the libspatialite
homepage listed above:
#include "spatialite.h"
#include "spatialite/control_points.h"
#include "spatialite/debug.h"
#include "spatialite/gaia_network.h"
#include "spatialite/gaia_topology.h"
#include "spatialite/gaiaaux.h"
#include "spatialite/gaiaconfig-msvc.h"
#include "spatialite/gaiaconfig-msvc.h.in"
#include "spatialite/gaiaconfig.h"
#include "spatialite/gaiaconfig.h.in"
#include "spatialite/gaiaexif.h"
#include "spatialite/gaiageo.h"
#include "spatialite/gaiamatrix.h"
#include "spatialite/geojson.h"
#include "spatialite/geopackage.h"
#include "spatialite/gg_advanced.h"
#include "spatialite/gg_const.h"
#include "spatialite/gg_core.h"
#include "spatialite/gg_dxf.h"
#include "spatialite/gg_dynamic.h"
#include "spatialite/gg_formats.h"
#include "spatialite/gg_mbr.h"
#include "spatialite/gg_sequence.h"
#include "spatialite/gg_structs.h"
#include "spatialite/gg_wfs.h"
#include "spatialite/gg_xml.h"
#include "spatialite/spatialite_ext.h"
#include "spatialite/sqlite.h"
#include "spatialite/stored_procedures.h"