ecd18a29e5
5fd6d89 Add powerpc64 toolchain file bd3d25d Add README 1a3081d Add correct project modules dir to CMake path 34d7914 Add cable_log() and cable_debug() f0fe702 Fix gitinfo when git describe fails to find any version tag 4c742d9 gitinfo: Extend with git describe 28c3d66 cable_configure_compiler: Add option to disable stack protection git-subtree-dir: cmake/cable git-subtree-split: 5fd6d89e7ed8f5e32c8e32168207dcf4f09b714d |
||
---|---|---|
buildinfo | ||
defaults | ||
toolchains | ||
CableBuildInfo.cmake | ||
CableBuildType.cmake | ||
CableCompilerSettings.cmake | ||
CableToolchains.cmake | ||
HunterGate.cmake | ||
LICENSE | ||
README.md | ||
bootstrap.cmake |
README.md
Cable
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 so it is easy to use them individually.
Table of Contents
Install
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 Cable submodule
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.