diff options
author | Kefu Chai <kchai@redhat.com> | 2018-08-14 10:11:13 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2018-08-17 09:21:27 +0200 |
commit | 6f231ee8640a332b3a04808b7a5e9126369ebe57 (patch) | |
tree | 549de412fbc31661604e110028e76b3b6db8eefa /src/test/cls_lock | |
parent | Merge PR #23597 into master (diff) | |
download | ceph-6f231ee8640a332b3a04808b7a5e9126369ebe57.tar.xz ceph-6f231ee8640a332b3a04808b7a5e9126369ebe57.zip |
cmake: link against gtest in a better way
* add FindGMock.cmake which allows user to use the libgtest-dev
shipped by distro
* add GMock::{GMock,Main}, GTest::{GTest,Main} targets to be
compatible with FindGTest.cmake and FindGMock.cmake, which
expose the built libraries with properties adhered to
them. so the consumer of them can import them in a better way.
* update tests to drop the commands like
set_target_properties(foo PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}),
as they are already linked against gmock and gtest.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/test/cls_lock')
-rw-r--r-- | src/test/cls_lock/CMakeLists.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/cls_lock/CMakeLists.txt b/src/test/cls_lock/CMakeLists.txt index 75e3ead6067..49214e17e68 100644 --- a/src/test/cls_lock/CMakeLists.txt +++ b/src/test/cls_lock/CMakeLists.txt @@ -1,8 +1,6 @@ add_executable(ceph_test_cls_lock test_cls_lock.cc ) -set_target_properties(ceph_test_cls_lock PROPERTIES COMPILE_FLAGS - ${UNITTEST_CXX_FLAGS}) target_link_libraries(ceph_test_cls_lock cls_lock_client librados |