Commit c7e35f83 authored by Sergiu Dotenco's avatar Sergiu Dotenco

added CMake usage instructions

parent 780efcc8
Building Glog with CMake
========================
1. Create a build directory and `cd` to it.
2. Run
```bash
cmake path/to/glog
```
3. Afterwards, generated files (GNU make, Visual Studio, etc.) can be used to
compile the project.
Consuming Glog in a CMake Project
=================================
To use Glog in your project `myproj`, use:
```cmake
cmake_minimum_required (VERSION 3.0)
project (myproj)
find_package (glog 0.3.4 REQUIRED)
add_executable (myapp main.cpp)
target_link_libraries (myapp glog::glog)
```
Compile definitions and options will be added automatically to your target as
needed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment