/cmake-cpp

Modern CMake C++ Sample

Primary LanguageC++Apache License 2.0Apache-2.0

Github-CI: Build Status Build Status Build Status Build Status

Travis-CI: Build Status

Appveyor-CI: Build Status

Introduction

| Dependencies | Codemap | Build | CI | License | This is an example of how to create a Modern [CMake](https://cmake.org/) C++ Project.

This project should run on Linux, Mac and Windows.

To complexify a little, the CMake project is composed of three libraries (Foo, Bar and FooBar) with the following dependencies:

Foo:
Bar:
FooBar: PUBLIC Foo PRIVATE Bar
FooBarApp: PRIVATE FooBar

note: Since Foo is a public dependency of FooBar, then FooBarApp will see Foo inlude directories

Thus the project layout is as follow:

To build the C++ project, as usual:

cmake -S. -Bbuild
cmake --build build

Apache 2. See the LICENSE file for details.

Disclaimer

This is not an official Google product, it is just code that happens to be owned by Google.