EVMC – Ethereum Client-VM Connector API https://evmc.ethereum.org
Go to file
Paweł Bylica 92e7165fa9 Squashed 'cmake/cable/' changes from a0c88f9..6458a65
6458a65 Cable 0.2.11
febf8ad buildinfo: Make buildinfo library installable
a784149 buildinfo: Handle undefined variables
8484c27 Cable 0.2.10: Add PIC toolchain files
c52a405 Cable 0.2.9: Fix gitinfo when no git
912f5e1 Cable 0.2.8
3ed70c6 buildinfo: Mark buildinfo.json as GENERATED file

git-subtree-dir: cmake/cable
git-subtree-split: 6458a653bf9f2fe16b0063455d4a52f5e629c7e1
2018-08-21 09:07:57 +02:00
buildinfo Squashed 'cmake/cable/' changes from a0c88f9..6458a65 2018-08-21 09:07:57 +02:00
defaults Squashed 'cmake/cable/' changes from 5fd6d89..caeabb3 2018-05-11 16:58:08 +02:00
toolchains Squashed 'cmake/cable/' changes from a0c88f9..6458a65 2018-08-21 09:07:57 +02:00
.gitignore Squashed 'cmake/cable/' changes from caeabb3..36b6cb6 2018-07-26 09:51:52 +02:00
CableBuildInfo.cmake Squashed 'cmake/cable/' changes from a0c88f9..6458a65 2018-08-21 09:07:57 +02:00
CableBuildType.cmake Squashed 'cmake/cable/' changes from 5fd6d89..caeabb3 2018-05-11 16:58:08 +02:00
CableCompilerSettings.cmake Squashed 'cmake/cable/' changes from caeabb3..36b6cb6 2018-07-26 09:51:52 +02:00
CableToolchains.cmake Squashed 'cmake/cable/' changes from caeabb3..36b6cb6 2018-07-26 09:51:52 +02:00
HunterGate.cmake Squashed 'cmake/cable/' content from commit d7bbd20 2018-04-10 16:28:36 +02:00
LICENSE Squashed 'cmake/cable/' content from commit d7bbd20 2018-04-10 16:28:36 +02:00
README.md Squashed 'cmake/cable/' changes from 5fd6d89..caeabb3 2018-05-11 16:58:08 +02:00
bootstrap.cmake Squashed 'cmake/cable/' changes from a0c88f9..6458a65 2018-08-21 09:07:57 +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

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.

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

As git submodule

Include the Cable library as git submodule in your project. The suggested submodule location is cmake/cable relative to your project root directory.

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.