Skip to content

p-brz/json-conan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

json-conan

badge Conan package for json library.

The packages generated from this conanfile can be found on conan.io.

See conan docs for detailed instructions in how to install conan and use it in your project.

For instructions about the library see the repository.

NOTE: All credits about the library go to its authors. This package is only intended to help its use with conan (i am just a user of both). Feel free to use or change it. You can also open an issue or send a pull-request.

Quickstart

You can use the 'test_package' as a sample in how to use this library with conan or follow instructions below.

Install conan

Detailed instructions here

Using pip:

pip install conan

Create conan project

You can create a conanfile.txt like this:

[requires]
json/1.0.0@paulobrizolara/stable
#you can include other libraries (search in conan.io)

[options]

[generators]
#see http://docs.conan.io/en/latest/integrations.html for
# others default generators. You can also search in conan.io
# for 'community' generators or make your own.
cmake

Another options is use a conanfile.py (that allows you use python and build your project from conan). More info here.

from conans import ConanFile, CMake

class PackageTest(ConanFile):
    settings = "os", "compiler", "build_type", "arch"

    # comma separated list of dependencies
    requires = "json/1.0.0@paulobrizolara/stable"
    generators = "cmake"
    default_options = ""

Install dependencies

conan install

Integrate in your project

Depends on the generator (and build system) you are using. See integrations for examples and instructions.

Releases

No releases published

Packages

No packages published