You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
627 B
627 B
Building Glog with CMake
-
Create a build directory and
cd
to it. -
Run
cmake path/to/glog
-
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_minimum_required (VERSION 3.0)
project (myproj)
find_package (glog 0.3.5 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.