Skip to content

Commit

Permalink
added CMake usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Jan 8, 2016
1 parent 780efcc commit c7e35f8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions cmake/INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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.

0 comments on commit c7e35f8

Please sign in to comment.