Coder Social home page Coder Social logo

helgoboss-midi-cpp's Introduction

helgoboss-midi

Reusable C++ code for dealing with MIDI messages

Build Status

Use

This is a library supposed to be used within a larger C++ application project. Assuming your project uses CMake and this library is already available to CMake, all you need to do is to adjust your CMakeLists.txt:

target_link_libraries(your-target PRIVATE helgoboss-midi::helgoboss-midi)

Here are some solutions to make the library available to CMake.

Solution 1: vcpkg

This assumes you have your application-wide vcpkg instance at lib/vcpkg.

  1. Add https://github.com/helgoboss/helgoboss-vcpkg-overlays as Git submodule at lib/helgoboss-vcpkg-overlays
  2. Integrate this into your application-wide vcpkg response file (e.g. vcpkg.txt) and use vcpkg to install the added package:
    helgoboss-midi
    --overlay-ports=../helgoboss-vcpkg-overlays/ports
    
  3. Add the following to your CMakeLists.txt before target_link_libraries
    find_package(helgoboss-midi 0.1.0 CONFIG REQUIRED)

Solution 2: Submodule

  1. Install the dependencies of this library mentioned in vcpkg.txt using whatever packagement management approach you prefer
  2. Copy this library to lib/helgoboss-midi (e.g. as Git submodule)
  3. Add the following to your CMakeLists.txt before target_link_libraries
    add_subdirectory(lib/helgoboss-midi)

Develop

The following commands are tailored to Linux but need only minimal adjustments to be executed on OS X or Windows.

Prepare

cd lib/vcpkg
./bootstrap-vcpkg.sh
./vcpkg install @../../vcpkg.txt

Build

CMake >= 3.13

cmake -B build/linux
cmake --build build/linux --config Release

CMake < 3.13

mkdir -p build/linux
cd build/linux
cmake ../..
cmake --build . --config Release

Test

cd build/linux
ctest

Install

CMake >= 3.15

cmake --install build/linux --prefix build/linux/test-install

helgoboss-midi-cpp's People

Contributors

helgoboss avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

paul-reilly

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.