From 459e5291687b391cb19c423ce9bd2039621edae8 Mon Sep 17 00:00:00 2001 From: Dani Perez Date: Tue, 22 Oct 2013 23:03:27 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 503d83e..616d9f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) # ---------------------------------------------------------------------------- -- 2.7.4