Remove couple of linking redundancies in CMakeLists

Reviewers: mferencevic

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1512
This commit is contained in:
Teon Banek 2018-07-27 15:35:42 +02:00
parent 9a6801cb98
commit 7262f7c5c1
2 changed files with 8 additions and 8 deletions

View File

@ -23,10 +23,10 @@ foreach(test_cpp ${test_type_cpps})
# requires unique logical target names
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${exec_name})
# link libraries
target_link_libraries(${target_name} memgraph_lib mg-integrations kvstore_dummy_lib)
# google-benchmark
target_link_libraries(${target_name} benchmark Threads::Threads)
# Regular link of libraries we depend on.
target_link_libraries(${target_name} benchmark memgraph_lib)
# Link the appropriate kvstore library for required components.
target_link_libraries(${target_name} kvstore_dummy_lib)
# register test
set(output_path

View File

@ -21,10 +21,10 @@ foreach(test_cpp ${test_type_cpps})
# requires unique logical target names
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${exec_name})
# link libraries
target_link_libraries(${target_name} memgraph_lib mg-integrations kvstore_dummy_lib)
# gtest
target_link_libraries(${target_name} gtest gmock gtest_main)
# Regular link of libraries we depend on.
target_link_libraries(${target_name} gtest gmock gtest_main memgraph_lib)
# Link the appropriate kvstore library for required components.
target_link_libraries(${target_name} kvstore_dummy_lib)
# register test
add_test(${target_name} ${exec_name})