Refactors Folly map test cases to use cdsstress library
[folly.git] / folly / stress-test / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.5)
2
3 set(CMAKE_BUILD_TYPE Release)
4
5 include_directories(
6     /scratch/googletest/googletest/include
7                 /scratch/gflags/gflags/build/include
8                 /scratch/glog/glog/src
9     /scratch/benchmarks/libcds/test/include
10     /scratch/benchmarks/libcds
11                 ../..
12 )
13
14 link_directories(
15     /scratch/folly/orig-folly/folly/folly-lib
16     /scratch/glog/glog/glog-lib
17     /scratch/gflags/gflags/build/gflags-lib
18     /scratch/googletest/googletest
19     ~/benchmarks/orig-bin
20 )
21
22 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y")
23
24 set(FOLLY_LIB folly pthread gflags glog gtest stress-framework)
25 set(RCU_OBJ ../synchronization/.libs/Rcu.o)
26
27 # Sequential driver
28 add_executable(stress-sequential-folly-map
29     stress-sequential-folly-map.cpp main.cpp ${RCU_OBJ})
30 target_link_libraries(stress-sequential-folly-map ${FOLLY_LIB})
31
32 add_executable(stress-sequential-folly-queue
33     stress-sequential-folly-queue.cpp ${RCU_OBJ})
34 target_link_libraries(stress-sequential-folly-queue ${FOLLY_LIB})
35
36 add_executable(stress-sequential-folly-sync
37     stress-sequential-folly-sync.cpp ${RCU_OBJ})
38 target_link_libraries(stress-sequential-folly-sync ${FOLLY_LIB})
39
40 # Parallel driver
41 add_executable(stress-parallel-folly-map
42     stress-parallel-folly-map.cpp main.cpp ${RCU_OBJ})
43 target_link_libraries(stress-parallel-folly-map ${FOLLY_LIB})
44
45 add_executable(stress-parallel-folly-queue
46     stress-parallel-folly-queue.cpp ${RCU_OBJ})
47 target_link_libraries(stress-parallel-folly-queue ${FOLLY_LIB})
48
49 add_executable(stress-parallel-folly-sync
50     stress-parallel-folly-sync.cpp ${RCU_OBJ})
51 target_link_libraries(stress-parallel-folly-sync ${FOLLY_LIB})