Migrated some unit tests to gtest framework
[libcds.git] / test / unit / set / CMakeLists.txt
1 set(PACKAGE_NAME unit-set)
2
3 set(CDSGTEST_SET_SOURCES
4     ../main.cpp
5     intrusive_michael_michael_hp.cpp
6     intrusive_michael_michael_dhp.cpp
7 )
8
9 include_directories(
10     ${CMAKE_CURRENT_SOURCE_DIR}
11 )
12
13 add_executable(${PACKAGE_NAME} ${CDSGTEST_SET_SOURCES})
14 target_link_libraries(${PACKAGE_NAME} 
15     ${CDS_SHARED_LIBRARY}
16     ${GTEST_LIBRARY}
17     ${Boost_THREAD_LIBRARY}
18     ${Boost_SYSTEM_LIBRARY}
19     ${CMAKE_THREAD_LIBS_INIT}
20 )
21
22 add_test(NAME ${PACKAGE_NAME} COMMAND ${PACKAGE_NAME} WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})