[CI] Changed CMake scripts for tests
authorkhizmax <libcds.dev@gmail.com>
Mon, 20 Feb 2017 19:37:25 +0000 (22:37 +0300)
committerkhizmax <libcds.dev@gmail.com>
Mon, 20 Feb 2017 19:37:25 +0000 (22:37 +0300)
test/unit/intrusive-list/CMakeLists.txt
test/unit/intrusive-set/CMakeLists.txt
test/unit/list/CMakeLists.txt
test/unit/map/CMakeLists.txt
test/unit/set/CMakeLists.txt

index 36e098e..5809034 100644 (file)
@@ -34,13 +34,7 @@ set(UNIT_ILIST_LAZY_SOURCES
     intrusive_lazy_rcu_sht.cpp
 )
 add_executable(${UNIT_ILIST_LAZY} ${UNIT_ILIST_LAZY_SOURCES})
-target_link_libraries(${UNIT_ILIST_LAZY} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ILIST_LAZY} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ILIST_LAZY} COMMAND ${UNIT_ILIST_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # intrusive::IterableList
@@ -51,13 +45,7 @@ set(UNIT_ILIST_ITERABLE_SOURCES
     intrusive_iterable_dhp.cpp
 )
 add_executable(${UNIT_ILIST_ITERABLE} ${UNIT_ILIST_ITERABLE_SOURCES})
-target_link_libraries(${UNIT_ILIST_ITERABLE} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ILIST_ITERABLE} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ILIST_ITERABLE} COMMAND ${UNIT_ILIST_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 
index a60d137..777786a 100644 (file)
@@ -35,13 +35,7 @@ set(UNIT_ISET_MICHAEL_SOURCES
     intrusive_michael_michael_rcu_sht.cpp
 )
 add_executable(${UNIT_ISET_MICHAEL} ${UNIT_ISET_MICHAEL_SOURCES})
-target_link_libraries(${UNIT_ISET_MICHAEL} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ISET_MICHAEL} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ISET_MICHAEL} COMMAND ${UNIT_ISET_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # intrusive::MichaelHashSet<LazyList>
@@ -58,13 +52,7 @@ set(UNIT_ISET_MICHAEL_LAZY_SOURCES
     intrusive_michael_lazy_rcu_sht.cpp
 )
 add_executable(${UNIT_ISET_MICHAEL_LAZY} ${UNIT_ISET_MICHAEL_LAZY_SOURCES})
-target_link_libraries(${UNIT_ISET_MICHAEL_LAZY} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ISET_MICHAEL_LAZY} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ISET_MICHAEL_LAZY} COMMAND ${UNIT_ISET_MICHAEL_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # intrusive::MichaelHashSet<IterableList>
@@ -75,13 +63,7 @@ set(UNIT_ISET_MICHAEL_ITERABLE_SOURCES
     intrusive_michael_iterable_hp.cpp
 )
 add_executable(${UNIT_ISET_MICHAEL_ITERABLE} ${UNIT_ISET_MICHAEL_ITERABLE_SOURCES})
-target_link_libraries(${UNIT_ISET_MICHAEL_ITERABLE} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ISET_MICHAEL_ITERABLE} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ISET_MICHAEL_ITERABLE} COMMAND ${UNIT_ISET_MICHAEL_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # intrusive::SkipListSet
@@ -98,13 +80,7 @@ set(UNIT_ISET_SKIP_SOURCES
     intrusive_skiplist_rcu_sht.cpp
 )
 add_executable(${UNIT_ISET_SKIP} ${UNIT_ISET_SKIP_SOURCES})
-target_link_libraries(${UNIT_ISET_SKIP} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ISET_SKIP} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ISET_SKIP} COMMAND ${UNIT_ISET_SKIP} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # intrusive::SplitListSet<MichaelList>
@@ -121,13 +97,7 @@ set(UNIT_ISET_SPLIT_MICHAEL_SOURCES
     intrusive_split_michael_rcu_sht.cpp
 )
 add_executable(${UNIT_ISET_SPLIT_MICHAEL} ${UNIT_ISET_SPLIT_MICHAEL_SOURCES})
-target_link_libraries(${UNIT_ISET_SPLIT_MICHAEL} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ISET_SPLIT_MICHAEL} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ISET_SPLIT_MICHAEL} COMMAND ${UNIT_ISET_SPLIT_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # intrusive::SplitListSet<LazyList>
@@ -144,13 +114,7 @@ set(UNIT_ISET_SPLIT_LAZY_SOURCES
     intrusive_split_lazy_rcu_sht.cpp
 )
 add_executable(${UNIT_ISET_SPLIT_LAZY} ${UNIT_ISET_SPLIT_LAZY_SOURCES})
-target_link_libraries(${UNIT_ISET_SPLIT_LAZY} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ISET_SPLIT_LAZY} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ISET_SPLIT_LAZY} COMMAND ${UNIT_ISET_SPLIT_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # intrusive::SplitListSet<IterableList>
@@ -161,13 +125,7 @@ set(UNIT_ISET_SPLIT_ITERABLE_SOURCES
     intrusive_split_iterable_dhp.cpp
 )
 add_executable(${UNIT_ISET_SPLIT_ITERABLE} ${UNIT_ISET_SPLIT_ITERABLE_SOURCES})
-target_link_libraries(${UNIT_ISET_SPLIT_ITERABLE} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_ISET_SPLIT_ITERABLE} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_ISET_SPLIT_ITERABLE} COMMAND ${UNIT_ISET_SPLIT_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 
index 32c3ed4..ca9a303 100644 (file)
@@ -38,13 +38,7 @@ set(UNIT_LIST_LAZY_SOURCES
     lazy_rcu_sht.cpp
 )
 add_executable(${UNIT_LIST_LAZY} ${UNIT_LIST_LAZY_SOURCES})
-target_link_libraries(${UNIT_LIST_LAZY} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_LIST_LAZY} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_LIST_LAZY} COMMAND ${UNIT_LIST_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # MichaelList
@@ -69,13 +63,7 @@ set(UNIT_LIST_MICHAEL_SOURCES
     michael_rcu_sht.cpp
 )
 add_executable(${UNIT_LIST_MICHAEL} ${UNIT_LIST_MICHAEL_SOURCES})
-target_link_libraries(${UNIT_LIST_MICHAEL} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_LIST_MICHAEL} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_LIST_MICHAEL} COMMAND ${UNIT_LIST_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 
index e6fa034..df09674 100644 (file)
@@ -33,13 +33,8 @@ set(UNIT_MAP_MICHAEL_SOURCES
     michael_michael_rcu_sht.cpp
 )
 add_executable(${UNIT_MAP_MICHAEL} ${UNIT_MAP_MICHAEL_SOURCES})
-target_link_libraries(${UNIT_MAP_MICHAEL}
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_MAP_MICHAEL} ${CDS_TEST_LIBRARIES})
+
 add_test(NAME ${UNIT_MAP_MICHAEL} COMMAND ${UNIT_MAP_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # MichaelHashMap<IterableList> unit test
@@ -50,13 +45,8 @@ set(UNIT_MAP_MICHAEL_ITERABLE_SOURCES
     michael_iterable_dhp.cpp
 )
 add_executable(${UNIT_MAP_MICHAEL_ITERABLE} ${UNIT_MAP_MICHAEL_ITERABLE_SOURCES})
-target_link_libraries(${UNIT_MAP_MICHAEL_ITERABLE}
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_MAP_MICHAEL_ITERABLE} ${CDS_TEST_LIBRARIES})
+
 add_test(NAME ${UNIT_MAP_MICHAEL_ITERABLE} COMMAND ${UNIT_MAP_MICHAEL_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # MichaelHashMap<LazyList> unit test
@@ -73,13 +63,7 @@ set(UNIT_MAP_MICHAEL_LAZY_SOURCES
     michael_lazy_rcu_sht.cpp
 )
 add_executable(${UNIT_MAP_MICHAEL_LAZY} ${UNIT_MAP_MICHAEL_LAZY_SOURCES})
-target_link_libraries(${UNIT_MAP_MICHAEL_LAZY}
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_MAP_MICHAEL_LAZY} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_MAP_MICHAEL_LAZY} COMMAND ${UNIT_MAP_MICHAEL_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # SkipListMap unit test
@@ -96,13 +80,7 @@ set(UNIT_MAP_SKIP_LIST_SOURCES
     skiplist_rcu_sht.cpp
 )
 add_executable(${UNIT_MAP_SKIP_LIST} ${UNIT_MAP_SKIP_LIST_SOURCES})
-target_link_libraries(${UNIT_MAP_SKIP_LIST}
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_MAP_SKIP_LIST} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_MAP_SKIP_LIST} COMMAND ${UNIT_MAP_SKIP_LIST} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # SplitListMap<MichaelList> unit test
@@ -119,13 +97,7 @@ set(UNIT_MAP_SPLIT_MICHAEL_SOURCES
     split_michael_rcu_sht.cpp
 )
 add_executable(${UNIT_MAP_SPLIT_MICHAEL} ${UNIT_MAP_SPLIT_MICHAEL_SOURCES})
-target_link_libraries(${UNIT_MAP_SPLIT_MICHAEL}
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_MAP_SPLIT_MICHAEL} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_MAP_SPLIT_MICHAEL} COMMAND ${UNIT_MAP_SPLIT_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # SplitListMap<IterableList> unit test
@@ -136,13 +108,7 @@ set(UNIT_MAP_SPLIT_ITERABLE_SOURCES
     split_iterable_dhp.cpp
 )
 add_executable(${UNIT_MAP_SPLIT_ITERABLE} ${UNIT_MAP_SPLIT_ITERABLE_SOURCES})
-target_link_libraries(${UNIT_MAP_SPLIT_ITERABLE}
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_MAP_SPLIT_ITERABLE} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_MAP_SPLIT_ITERABLE} COMMAND ${UNIT_MAP_SPLIT_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # SplitListMap<LazyList> unit test
@@ -159,13 +125,7 @@ set(UNIT_MAP_SPLIT_LAZY_SOURCES
     split_lazy_rcu_sht.cpp
 )
 add_executable(${UNIT_MAP_SPLIT_LAZY} ${UNIT_MAP_SPLIT_LAZY_SOURCES})
-target_link_libraries(${UNIT_MAP_SPLIT_LAZY}
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_MAP_SPLIT_LAZY} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_MAP_SPLIT_LAZY} COMMAND ${UNIT_MAP_SPLIT_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 
index 85d18c2..bc205c6 100644 (file)
@@ -33,13 +33,7 @@ set(UNIT_SET_MICHAEL_SOURCES
     michael_michael_rcu_sht.cpp
 )
 add_executable(${UNIT_SET_MICHAEL} ${UNIT_SET_MICHAEL_SOURCES})
-target_link_libraries(${UNIT_SET_MICHAEL} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_SET_MICHAEL} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_SET_MICHAEL} COMMAND ${UNIT_SET_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # MichaelSet<IterableList>
@@ -50,13 +44,7 @@ set(UNIT_SET_MICHAEL_ITERABLE_SOURCES
     michael_iterable_dhp.cpp
 )
 add_executable(${UNIT_SET_MICHAEL_ITERABLE} ${UNIT_SET_MICHAEL_ITERABLE_SOURCES})
-target_link_libraries(${UNIT_SET_MICHAEL_ITERABLE} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_SET_MICHAEL_ITERABLE} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_SET_MICHAEL_ITERABLE} COMMAND ${UNIT_SET_MICHAEL_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # MichaelSet<LazyList>
@@ -73,13 +61,7 @@ set(UNIT_SET_MICHAEL_LAZY_SOURCES
     michael_lazy_rcu_sht.cpp
 )
 add_executable(${UNIT_SET_MICHAEL_LAZY} ${UNIT_SET_MICHAEL_LAZY_SOURCES})
-target_link_libraries(${UNIT_SET_MICHAEL_LAZY} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_SET_MICHAEL_LAZY} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_SET_MICHAEL_LAZY} COMMAND ${UNIT_SET_MICHAEL_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # SkipListSet
@@ -96,13 +78,7 @@ set(UNIT_SET_SKIP_SOURCES
     skiplist_rcu_sht.cpp
 )
 add_executable(${UNIT_SET_SKIP} ${UNIT_SET_SKIP_SOURCES})
-target_link_libraries(${UNIT_SET_SKIP} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_SET_SKIP} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_SET_SKIP} COMMAND ${UNIT_SET_SKIP} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # SplitListSet<MichaelList>
@@ -119,13 +95,7 @@ set(UNIT_SET_SPLIT_MICHAEL_SOURCES
     split_michael_rcu_sht.cpp
 )
 add_executable(${UNIT_SET_SPLIT_MICHAEL} ${UNIT_SET_SPLIT_MICHAEL_SOURCES})
-target_link_libraries(${UNIT_SET_SPLIT_MICHAEL} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_SET_SPLIT_MICHAEL} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_SET_SPLIT_MICHAEL} COMMAND ${UNIT_SET_SPLIT_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # SplitListSet<LazyList>
@@ -142,13 +112,7 @@ set(UNIT_SET_SPLIT_LAZY_SOURCES
     split_lazy_rcu_sht.cpp
 )
 add_executable(${UNIT_SET_SPLIT_LAZY} ${UNIT_SET_SPLIT_LAZY_SOURCES})
-target_link_libraries(${UNIT_SET_SPLIT_LAZY} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_SET_SPLIT_LAZY} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_SET_SPLIT_LAZY} COMMAND ${UNIT_SET_SPLIT_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
 
 # SplitListSet<IterableList>
@@ -159,13 +123,7 @@ set(UNIT_SET_SPLIT_ITERABLE_SOURCES
     split_iterable_dhp.cpp
 )
 add_executable(${UNIT_SET_SPLIT_ITERABLE} ${UNIT_SET_SPLIT_ITERABLE_SOURCES})
-target_link_libraries(${UNIT_SET_SPLIT_ITERABLE} 
-    ${CDS_SHARED_LIBRARY}
-    ${GTEST_LIBRARY}
-    ${Boost_THREAD_LIBRARY}
-    ${Boost_SYSTEM_LIBRARY}
-    ${CMAKE_THREAD_LIBS_INIT}
-)
+target_link_libraries(${UNIT_SET_SPLIT_ITERABLE} ${CDS_TEST_LIBRARIES})
 add_test(NAME ${UNIT_SET_SPLIT_ITERABLE} COMMAND ${UNIT_SET_SPLIT_ITERABLE} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})