evmc/cmake/cable
Paweł Bylica a9c4414790
Upgrade Cable to 0.4.0
2019-05-15 11:58:04 +02:00
..
buildinfo Upgrade Cable to 0.2.13 2018-09-06 13:04:58 +01:00
defaults Update Cable to commit caeabb3a9f054f5c0b5076aa958968c42f7a5df4 2018-05-11 16:58:08 +02:00
toolchains Fix Cable subtree 2019-03-14 12:04:44 +01:00
.gitignore Upgrade Cable to v0.2.6 2018-07-26 09:53:07 +02:00
CableBuildInfo.cmake Upgrade Cable to 0.2.17 2019-04-24 19:34:10 +02:00
CableBuildType.cmake Upgrade Cable to 0.4.0 2019-05-15 11:58:04 +02:00
CableCompilerSettings.cmake Upgrade Cable to 0.4.0 2019-05-15 11:58:04 +02:00
CableToolchains.cmake Cable 0.2.3: Allow loading toolchain files from outside of cable dir 2018-06-26 16:36:27 +02:00
HunterGate.cmake Upgrade Cable to 0.4.0 2019-05-15 11:58:04 +02:00
LICENSE Add Cable as git subtree 2018-04-10 16:32:17 +02:00
README.md Upgrade Cable to 0.2.14 2018-10-05 16:05:42 +02:00
bootstrap.cmake Upgrade Cable to 0.4.0 2019-05-15 11:58:04 +02:00

README.md

Cable

readme style: standard

Cable: CMake Bootstrap Library

Cable is a set of CMake modules and scripts containing common patterns used in CMake-based C++ projects. The design goal is to be pragmatic rather than generic so the number of provided options is minimal. The Cable modules are independent and it is easy to use them individually.

Table of Contents

Install

The suggested Cable location is cmake/cable relative to your project root directory.

As git subtree

Adding a dependency project as a git subtree is just a copy of the source code done in a bit more systematic way.

If you are not familiar with managing dependencies with git subtree read the Git subtree: the alternative to Git submodule.

To install

git remote add cable https://github.com/ethereum/cable
git subtree add --prefix cmake/cable cable master --squash

To update

git subtree pull --prefix cmake/cable cable master --squash

As git submodule

Include the Cable library as git submodule in your project.

git submodule add https://github.com/ethereum/cable cmake/cable

Usage

Cable contains the bootstrap.cmake file that initializes the library. Start by including this file in your main CMakeLists.txt from the Cable submodule/subtree or any other location. The bootstrap.cmake must be included before the project() command. After that, you can include and use other Cable modules.

Example

cmake_minimum_required(VERSION 3.5)

include(cmake/cable/bootstrap.cmake)
include(CableBuildType)

project(tothemoon)

cable_set_build_type(DEFAULT RelWithDebInfo CONFIGURATION_TYPES Debug Release RelWithDebInfo)

Maintainer

Paweł Bylica @chfast

License

Licensed under the Apache License, Version 2.0.