X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2Funit%2Fintrusive-set%2FCMakeLists.txt;h=777786a726e759fee30a96a3bbaa47c4d67f5975;hb=65f7355b1eaa63b1a46d2172d10d45e400e6d862;hp=a05cce67639cd65b9f3db5776685d413c35c0756;hpb=7448008aa977fe42a83738fbbc63ce11d8ab86f9;p=libcds.git diff --git a/test/unit/intrusive-set/CMakeLists.txt b/test/unit/intrusive-set/CMakeLists.txt index a05cce67..777786a7 100644 --- a/test/unit/intrusive-set/CMakeLists.txt +++ b/test/unit/intrusive-set/CMakeLists.txt @@ -1,8 +1,12 @@ -set(PACKAGE_NAME unit-intrusive-set) - +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} +) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-invalid-offsetof") -set(CDSGTEST_SET_SOURCES + +# intrusive::FeldmanHashSet +set(UNIT_ISET_FELDMAN unit-iset-feldman) +set(UNIT_ISET_FELDMAN_SOURCES ../main.cpp intrusive_feldman_hashset_hp.cpp intrusive_feldman_hashset_dhp.cpp @@ -11,14 +15,16 @@ set(CDSGTEST_SET_SOURCES intrusive_feldman_hashset_rcu_gpt.cpp intrusive_feldman_hashset_rcu_shb.cpp intrusive_feldman_hashset_rcu_sht.cpp - intrusive_michael_lazy_hp.cpp - intrusive_michael_lazy_dhp.cpp - intrusive_michael_lazy_nogc.cpp - intrusive_michael_lazy_rcu_gpb.cpp - intrusive_michael_lazy_rcu_gpi.cpp - intrusive_michael_lazy_rcu_gpt.cpp - intrusive_michael_lazy_rcu_shb.cpp - intrusive_michael_lazy_rcu_sht.cpp +) +add_executable(${UNIT_ISET_FELDMAN} ${UNIT_ISET_FELDMAN_SOURCES}) +target_link_libraries(${UNIT_ISET_FELDMAN} ${CDS_TEST_LIBRARIES}) + +add_test(NAME ${UNIT_ISET_FELDMAN} COMMAND ${UNIT_ISET_FELDMAN} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}) + +# intrusive::MichaelHashSet +set(UNIT_ISET_MICHAEL unit-iset-michael) +set(UNIT_ISET_MICHAEL_SOURCES + ../main.cpp intrusive_michael_michael_hp.cpp intrusive_michael_michael_dhp.cpp intrusive_michael_michael_nogc.cpp @@ -27,6 +33,43 @@ set(CDSGTEST_SET_SOURCES intrusive_michael_michael_rcu_gpt.cpp intrusive_michael_michael_rcu_shb.cpp intrusive_michael_michael_rcu_sht.cpp +) +add_executable(${UNIT_ISET_MICHAEL} ${UNIT_ISET_MICHAEL_SOURCES}) +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 +set(UNIT_ISET_MICHAEL_LAZY unit-iset-michael-lazy) +set(UNIT_ISET_MICHAEL_LAZY_SOURCES + ../main.cpp + intrusive_michael_lazy_hp.cpp + intrusive_michael_lazy_dhp.cpp + intrusive_michael_lazy_nogc.cpp + intrusive_michael_lazy_rcu_gpb.cpp + intrusive_michael_lazy_rcu_gpi.cpp + intrusive_michael_lazy_rcu_gpt.cpp + intrusive_michael_lazy_rcu_shb.cpp + 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_TEST_LIBRARIES}) +add_test(NAME ${UNIT_ISET_MICHAEL_LAZY} COMMAND ${UNIT_ISET_MICHAEL_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}) + +# intrusive::MichaelHashSet +set(UNIT_ISET_MICHAEL_ITERABLE unit-iset-michael-iterable) +set(UNIT_ISET_MICHAEL_ITERABLE_SOURCES + ../main.cpp + intrusive_michael_iterable_dhp.cpp + intrusive_michael_iterable_hp.cpp +) +add_executable(${UNIT_ISET_MICHAEL_ITERABLE} ${UNIT_ISET_MICHAEL_ITERABLE_SOURCES}) +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 +set(UNIT_ISET_SKIP unit-iset-skip) +set(UNIT_ISET_SKIP_SOURCES + ../main.cpp intrusive_skiplist_hp.cpp intrusive_skiplist_dhp.cpp intrusive_skiplist_nogc.cpp @@ -35,14 +78,15 @@ set(CDSGTEST_SET_SOURCES intrusive_skiplist_rcu_gpt.cpp intrusive_skiplist_rcu_shb.cpp intrusive_skiplist_rcu_sht.cpp - intrusive_split_lazy_hp.cpp - intrusive_split_lazy_dhp.cpp - intrusive_split_lazy_nogc.cpp - intrusive_split_lazy_rcu_gpb.cpp - intrusive_split_lazy_rcu_gpi.cpp - intrusive_split_lazy_rcu_gpt.cpp - intrusive_split_lazy_rcu_shb.cpp - intrusive_split_lazy_rcu_sht.cpp +) +add_executable(${UNIT_ISET_SKIP} ${UNIT_ISET_SKIP_SOURCES}) +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 +set(UNIT_ISET_SPLIT_MICHAEL unit-iset-split-michael) +set(UNIT_ISET_SPLIT_MICHAEL_SOURCES + ../main.cpp intrusive_split_michael_hp.cpp intrusive_split_michael_dhp.cpp intrusive_split_michael_nogc.cpp @@ -52,18 +96,50 @@ set(CDSGTEST_SET_SOURCES intrusive_split_michael_rcu_shb.cpp 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_TEST_LIBRARIES}) +add_test(NAME ${UNIT_ISET_SPLIT_MICHAEL} COMMAND ${UNIT_ISET_SPLIT_MICHAEL} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}) -include_directories( - ${CMAKE_CURRENT_SOURCE_DIR} +# intrusive::SplitListSet +set(UNIT_ISET_SPLIT_LAZY unit-iset-split-lazy) +set(UNIT_ISET_SPLIT_LAZY_SOURCES + ../main.cpp + intrusive_split_lazy_hp.cpp + intrusive_split_lazy_dhp.cpp + intrusive_split_lazy_nogc.cpp + intrusive_split_lazy_rcu_gpb.cpp + intrusive_split_lazy_rcu_gpi.cpp + intrusive_split_lazy_rcu_gpt.cpp + intrusive_split_lazy_rcu_shb.cpp + 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_TEST_LIBRARIES}) +add_test(NAME ${UNIT_ISET_SPLIT_LAZY} COMMAND ${UNIT_ISET_SPLIT_LAZY} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}) -add_executable(${PACKAGE_NAME} ${CDSGTEST_SET_SOURCES}) -target_link_libraries(${PACKAGE_NAME} - ${CDS_SHARED_LIBRARY} - ${GTEST_LIBRARY} - ${Boost_THREAD_LIBRARY} - ${Boost_SYSTEM_LIBRARY} - ${CMAKE_THREAD_LIBS_INIT} +# intrusive::SplitListSet +set(UNIT_ISET_SPLIT_ITERABLE unit-iset-split-iterable) +set(UNIT_ISET_SPLIT_ITERABLE_SOURCES + ../main.cpp + intrusive_split_iterable_hp.cpp + intrusive_split_iterable_dhp.cpp ) +add_executable(${UNIT_ISET_SPLIT_ITERABLE} ${UNIT_ISET_SPLIT_ITERABLE_SOURCES}) +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}) + + + +add_custom_target( unit-iset + DEPENDS + ${UNIT_ISET_FELDMAN} + ${UNIT_ISET_MICHAEL} + ${UNIT_ISET_MICHAEL_ITERABLE} + ${UNIT_ISET_MICHAEL_LAZY} + ${UNIT_ISET_SKIP_LIST} + ${UNIT_ISET_SPLIT_MICHAEL} + ${UNIT_ISET_SPLIT_ITERABLE} + ${UNIT_ISET_SPLIT_LAZY} +) + -add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}) \ No newline at end of file