Commit graph

10 commits

Author SHA1 Message Date
Andreas Schuh
24e652d81a Support alternative namespaces in GFLAGS_NAMESPACE CMake variable.
The first element in the GFLAGS_NAMESPACE list is used as primary/default namespace. The symbols are then imported from this primary namespace into each of the other alternative namespaces with the using keyword. This is in particular used to maintain backwards compatibility with previous gflags library versions that used the "google" namespace instead of the new default "gflags" namespace.
2015-03-24 16:03:15 +00:00
Andreas Schuh
aff8ef820a Add GFLAGS_INCLUDE_DIR CMake variable (Fixes issue #80).
Both GFLAGS_NAMESPACE and GFLAGS_INCLUDE_DIR can be used to customize the installation of the gflags library. One specifies the C++ namespace name of the gflags symbols, the other the include subdirectory path of the public header files. By default, both are set to "gflags", but other Google libraries still expect "google" as C++ namespace name, but not necessarily also include path.
2014-03-27 01:09:20 +00:00
Andreas Schuh
492ac156bc Fix DLL build on Windows and use PathMatchSpec instead of fnmatch.
Expose as few system variables as possible through public interface.
Perform STRIP_FLAGS_HELP test using CMake instead of Bash.
Change file path separator used by gflags_reporting.cc to backslash on Windwos.
2014-03-18 22:03:10 +00:00
Andreas Schuh
8d93bca20a Minor CMake coding style change of version_numbers function. 2014-03-17 21:16:31 +00:00
Andreas Schuh
0d9486f9a3 Pass --test_tmpdir and --srcdir to unittests. 2014-03-17 21:15:52 +00:00
Andreas Schuh
c94e9bec36 Add missing execute_test.cmake script. 2014-03-17 16:12:56 +00:00
Andreas Schuh
33ee7ad6ef Fix typo in documentation and path of execute_test.cmake script. 2014-03-17 13:41:46 +00:00
Andreas Schuh
8a563cfca3 Migrate unit tests to CMake/CTest. Fix preprocessor directive in gflags_unittest.cc. 2014-03-14 20:32:37 +00:00
Andreas Schuh
2ec91bffad Move definition of configure_sources CMake function to utils module. 2013-08-01 00:17:53 +01:00
Andreas Schuh
42a0018843 Configure and install CMake package configuration file to help find_package locate the gflags package. 2013-07-31 23:55:50 +01:00