Commit graph

14 commits

Author SHA1 Message Date
Mizux
0b7f8db2c6 Fix check of targets in package config when GFLAGS_USE_TARGET_NAMESPACE 2019-09-29 15:31:36 +01:00
Phil Christensen
00fcadd9b8
Add missing @ to cmake file 2018-11-30 15:48:42 -08:00
Andreas Schuh
c0b1add45f fix: Import with GFLAGS_USE_TARGET_NAMESPACE=ON 2018-09-28 16:28:33 +01:00
Andreas Schuh
f1ea012a41 fix: Import with or without gflags:: namespace 2018-09-28 16:28:33 +01:00
Corentin Le Molgat
f7228d77b5 Use CMake namespace gflags:: for export and alias target
Now use gflags::gflags instead of gflags

note: seems already in use in gRPC
cf https://github.com/grpc/grpc/blob/master/cmake/gflags.cmake#L30
2018-01-31 13:46:59 +01:00
Andreas Schuh
6c0ee003e8 fix: Copy missing IMPORTED_IMPLIB_<CONFIG> gflags target property 2016-11-24 23:23:23 +00:00
Andreas Schuh
3064f63a6e enh: Avoid use of install(EXPORTS) FILE option 2016-11-24 22:42:59 +00:00
Andreas Schuh
7a21c16f00 cmake: Rename targets to gflags[_nothreads]_(static|shared), support
find_package COMPONENTS
2016-03-01 21:04:10 +00:00
Andreas Schuh
2de6bf3904 cmake: Change CMake package configuration variable name prefix to GFLAGS_ 2016-03-01 20:12:34 +00:00
Andreas Schuh
f4f524df1f #110 Set gflags_LIBRARIES to value of gflags_TARGET instead of "gflags" 2015-03-25 03:17:36 +00:00
Andreas Schuh
ed1d91f912 #110 Add "gflags" import target and gflags_TARGET
The gflags_TARGET variable contains the name of the originally exported import target. The "gflags" import target contains a copy of the relevant properties of this import target created by CMake. The gflags_LIBRARIES variable can be used to be consistent with other packages, but is otherwise no longer needed. In most cases, "target_link_libraries(foo gflags)" should be used.
2015-03-25 03:07:04 +00:00
Andreas Schuh
9e937e80fb #105 Add gflags_SHARED and gflags_NOTHREADED gflags-config.cmake options 2015-03-24 18:55:17 +00:00
Andreas Schuh
76c53b710e #104 Set INTERFACE_INCLUDE_DIRECTORIES of (imported) targets 2015-03-24 14:44:12 +00: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