GithubHelp home page GithubHelp logo

rypplite's Introduction

Building Boost modules with automatic dependency resolution

Rypplite can be used to download dependencies of CMake-able Boost components. To make use of it, simply set the variable 'Boost_DIR' to the absolute path of Rypplite.

Additionally, the variable 'RYPPL_COMPONENTS' may be set to a list of components that are already available. Rypplite will skip these modules and not download them. It is important to set this variable in case your component is part of a circular dependency. Otherwise, setting this variable is not required, but also does not do any harm. It is therefore a good idea to always set it.

Single module

If you build a single Boost component, the simplest way to set the two variables is to pass them via command line parameters. Example:

cmake -DBoost_DIR=/path/to/rypplite/ -DRYPPL_COMPONENTS=accumulators ../path/to/accumulators/

Multiple modules (Workspace mode)

When building multiple Boost components, it is easier to set the required variables in a CMakeLists.txt file. Create a workspace directory and put rypplite as well as all your Boost components inside. The CMakeLists.txt will look similar to this one:

cmake_minimum_required(VERSION 2.8.4)
project(MyWorkspace)

set(Boost_DIR "${CMAKE_SOURCE_DIR}/rypplite")

# As long as CTest does not support incremental testing, we disable the
# builtin test target and create our own. This target should be "built"
# with the "keep going" option, eg: 'make test -k'.
add_custom_target(test)
#enable_testing()

# Set the components that Rypplite should not download
set(RYPPL_COMPONENTS filesystem quickbook)

# This is required. The reason is complicated. Please just set it to 'one'.
set(RYPPL_DEPENDENCY_LEVEL 1)

add_subdirectory(filesystem)
add_subdirectory(quickbook)

Updating dependencies

To update all the dependencies to their newest commit, simply build the 'update' target.

make update

rypplite's People

Contributors

purplekarrot avatar

Watchers

Boost SVN/Git Mirror 'Bot avatar James Cloos 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.