From: Sergiu Dotenco Date: Fri, 8 Jan 2016 14:21:24 +0000 (+0100) Subject: added CMake usage instructions X-Git-Tag: submit/tizen/20180313.064233~64^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7e35f834c8b091b460c5600628d97bd83b3b731;p=platform%2Fupstream%2Fglog.git added CMake usage instructions --- diff --git a/cmake/INSTALL.md b/cmake/INSTALL.md new file mode 100644 index 0000000..bdc1cd9 --- /dev/null +++ b/cmake/INSTALL.md @@ -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.