Skip to content
Snippets Groups Projects
Commit 459e5291 authored by Dani Perez's avatar Dani Perez
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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)
# ----------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment