Lines Matching refs:gflags

1 ## CMake configuration file of gflags project
3 ## This CMakeLists.txt defines some gflags specific configuration variables
6 ## the cmake command or in a super-project which includes the gflags source
8 ## gflags source directory via CMake's "add_subdirectory" command. Only when
13 ## file, i.e., the top-level directory of the gflags project source tree.
17 ## installation of the gflags files. The "gflags::gflags" target is in this case an ALIAS
19 ## depend on the gflags library should link to the "gflags::gflags" library target.
21 ## Example CMakeLists.txt of user project which requires separate gflags installation:
26 ## find_package(gflags REQUIRED)
29 ## target_link_libraries(foo gflags::gflags)
31 ## Example CMakeLists.txt of user project which requires separate single-threaded static gflags ins…
36 ## find_package(gflags COMPONENTS nothreads_static)
39 ## target_link_libraries(foo gflags::gflags)
41 ## Example CMakeLists.txt of super-project which contains gflags source tree:
46 ## add_subdirectory(gflags)
49 ## target_link_libraries(foo gflags::gflags)
89 set (PACKAGE_NAME "gflags")
93 set (PACKAGE_BUGREPORT "https://github.com/gflags/gflags/issues")
95 set (PACKAGE_URL "http://gflags.github.io/gflags")
123 # namespace from "google" to "gflags".
127 # when gflags is included as subproject (e.g., as Git submodule/subtree) in the source
129 # users may set the non-cached variable GFLAGS_IS_SUBPROJECT before add_subdirectory(gflags)
148 # maintain binary backwards compatibility with gflags library version <= 2.0,
149 # but at the same time enable the use of the preferred new "gflags" namespace
165 # cached build options when gflags is not a subproject, otherwise non-cached CMake variables
169 gflags_define (BOOL BUILD_gflags_LIB "Request build of the multi-threaded gflags library.…
170 gflags_define (BOOL BUILD_gflags_nothreads_LIB "Request build of the single-threaded gflags library…
331 … "\nor disable the build of the multi-threaded gflags library (BUILD_gflags_LIB=OFF).")
340 "gflags.h"
346 …set (INCLUDE_GFLAGS_NS_H "// Import gflags library symbols into alternative/deprecated namespace(s…
366 "gflags.cc"
459 set (target_name "gflags${opts}_${type}")
462 OUTPUT_NAME "gflags${opts}${type_suffix}"
486 if (NOT TARGET gflags${opts})
487 add_custom_target (gflags${opts})
489 add_dependencies (gflags${opts} ${target_name})
500 if (TARGET gflags${opts}_${type})
501 …# Define "gflags" alias for super-projects treating targets of this library as part of their own p…
502 # (also for backwards compatibility with gflags 2.2.1 which only defined this alias)
503 add_library (gflags ALIAS gflags${opts}_${type}) target
504 …# Define "gflags::gflags" alias for projects that support both find_package(gflags) and add_subdir…
505 add_library (gflags::gflags ALIAS gflags${opts}_${type})
509 if (TARGET gflags::gflags)
525 install (TARGETS gflags${opts}_shared
537 install (TARGETS gflags${opts}_static
647 set (CPACK_PACKAGE_CONTACT "google-gflags@googlegroups.com")