Refactors CMakefile
[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                 ../..
10 )
11
12 link_directories(
13     /scratch/folly/orig-folly/folly/folly-lib
14     /scratch/glog/glog/glog-lib
15     /scratch/gflags/gflags/build/gflags-lib
16     /scratch/googletest/googletest
17 )
18
19 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y")
20
21 set(FOLLY_LIB folly pthread gflags glog gtest)
22 set(RCU_OBJ ../synchronization/.libs/Rcu.o)
23
24 # Sequential driver
25 add_executable(stress-sequential-folly-map stress-sequential-folly-map.cpp ${RCU_OBJ})
26 target_link_libraries(stress-sequential-folly-map ${FOLLY_LIB})
27
28 add_executable(stress-sequential-folly-queue stress-sequential-folly-queue.cpp ${RCU_OBJ})
29 target_link_libraries(stress-sequential-folly-queue ${FOLLY_LIB})
30
31 add_executable(stress-sequential-folly-sync stress-sequential-folly-sync.cpp ${RCU_OBJ})
32 target_link_libraries(stress-sequential-folly-sync ${FOLLY_LIB})
33
34 # Parallel driver
35 add_executable(stress-parallel-folly-map stress-parallel-folly-map.cpp ${RCU_OBJ})
36 target_link_libraries(stress-parallel-folly-map ${FOLLY_LIB})
37
38 add_executable(stress-parallel-folly-queue stress-parallel-folly-queue.cpp ${RCU_OBJ})
39 target_link_libraries(stress-parallel-folly-queue ${FOLLY_LIB})
40
41 add_executable(stress-parallel-folly-sync stress-parallel-folly-sync.cpp ${RCU_OBJ})
42 target_link_libraries(stress-parallel-folly-sync ${FOLLY_LIB})