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