Commit 459e5291 authored by Dani Perez's avatar Dani Perez

exporting binary tree to CMake registry

This eases integration with other applications making use
of gflags without needing to install it in the system.
find_package looks in the registry for existing software.
parent 667c52be
......@@ -179,6 +179,7 @@ endif ()
# support direct use of build tree
set (INSTALL_PREFIX_REL2CONFIG_DIR .)
export (TARGETS gflags gflags_nothreads FILE "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-export.cmake")
export (PACKAGE gflags)
configure_file (cmake/config.cmake.in "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-config.cmake" @ONLY)
# ----------------------------------------------------------------------------
......
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