Giter Club home page Giter Club logo

conan-libmodbus's Introduction

Download Build Status UNIX Build Status WIND

Conan.io recipe for libmodbus.

The recipe generates library packages, which can be found at Bintray. The package is usually consumed using the conan install command or a conanfile.txt.

How to use this package

  1. Add remote to conan's package registry.txt:

    $ conan remote add joakimono https://api.bintray.com/conan/joakimono/conan
  2. Using conanfile.txt in your project with cmake

    Add a conanfile.txt to your project. This file describes dependencies and your configuration of choice, e.g.:

    [requires]
    libmodbus/[>=3.1.6]@joakimono/stable
    
    [options]
    libmodbus:shared=False
    
    [imports]
    licenses, * -> ./licenses @ folder=True
    
    [generators]
    cmake
    

    Insert into your CMakeLists.txt something like the following lines:

    cmake_minimum_required(VERSION 3.1.2)
    project(TheProject CXX)
    
    include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
    conan_basic_setup(TARGETS)
    
    add_executable(the_executor code.cpp)
    target_link_libraries(the_executor CONAN_PKG::libmodbus)

    Then, do

    $ mkdir build && cd build
    $ conan install ..

    You can now continue with the usual dance with cmake commands for configuration and compilation. For details on how to use conan, please consult Conan.io docs

Package options

Option Default Domain
shared True [True,False]

Known recipe issues

Not tested for mingw or cygwin on Windows.

conan-libmodbus's People

Contributors

gocarlos avatar joakimono avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.