[requires]
flann/1.9.2
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]
flann/1.9.2
[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("flann/1.9.2")
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:
flann (config), Flann (module)
flann::flann
flann_c => flann::flann_s
flann_cpp => flann::flann_cpp_s
flann.pc
flann_c => flann-flann_c.pc
flann_cpp => flann-flann_cpp.pc
A simple use case using the CMake file name and the global target:
# ...
find_package(flann REQUIRED)
# ...
target_link_libraries(YOUR_TARGET flann::flann)
These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the flann
homepage listed above:
#include "flann/algorithms/all_indices.h"
#include "flann/algorithms/autotuned_index.h"
#include "flann/algorithms/center_chooser.h"
#include "flann/algorithms/composite_index.h"
#include "flann/algorithms/dist.h"
#include "flann/algorithms/hierarchical_clustering_index.h"
#include "flann/algorithms/kdtree_cuda_3d_index.h"
#include "flann/algorithms/kdtree_cuda_builder.h"
#include "flann/algorithms/kdtree_index.h"
#include "flann/algorithms/kdtree_single_index.h"
#include "flann/algorithms/kmeans_index.h"
#include "flann/algorithms/linear_index.h"
#include "flann/algorithms/lsh_index.h"
#include "flann/algorithms/nn_index.h"
#include "flann/config.h"
#include "flann/defines.h"
#include "flann/flann.h"
#include "flann/flann.hpp"
#include "flann/general.h"
#include "flann/io/hdf5.h"
#include "flann/mpi/client.h"
#include "flann/mpi/index.h"
#include "flann/mpi/matrix.h"
#include "flann/mpi/queries.h"
#include "flann/mpi/server.h"
#include "flann/nn/ground_truth.h"
#include "flann/nn/index_testing.h"
#include "flann/nn/simplex_downhill.h"
#include "flann/util/allocator.h"
#include "flann/util/any.h"
#include "flann/util/cuda/heap.h"
#include "flann/util/cuda/result_set.h"
#include "flann/util/cutil_math.h"
#include "flann/util/dynamic_bitset.h"
#include "flann/util/heap.h"
#include "flann/util/logger.h"
#include "flann/util/lsh_table.h"
#include "flann/util/matrix.h"
#include "flann/util/object_factory.h"
#include "flann/util/params.h"
#include "flann/util/random.h"
#include "flann/util/result_set.h"
#include "flann/util/sampling.h"
#include "flann/util/saving.h"
#include "flann/util/serialization.h"
#include "flann/util/timer.h"