adb76de9bafce6fb10ec5570a9ccd28e929ae141
[junction.git] / test / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.5)
2
3 set(CMAKE_CONFIGURATION_TYPES "Release" CACHE INTERNAL "Build configs")
4
5 include_directories(
6     /scratch/googletest/googletest/include
7     /scratch/benchmarks/libcds/test/include
8     /scratch/benchmarks/libcds
9 )
10
11 link_directories(
12     /scratch/benchmarks/libcds/build/bin
13     /scratch/googletest/googletest
14 )
15
16 set(SEQUENTIAL_DRIVER stress-sequential-junction)
17 set(PARALLEL_DRIVER stress-parallel-junction)
18
19 set(JUNCTION_LIB
20   junction
21   turf
22   # It's fine to link the lib compiled from original clang because we are only
23   # using the config parsing functionality.
24   stress-framework
25   gtest
26 )
27
28 add_executable(${SEQUENTIAL_DRIVER} junction_sequential_driver.cpp)
29 target_link_libraries(${SEQUENTIAL_DRIVER} ${JUNCTION_LIB})
30
31 add_executable(${PARALLEL_DRIVER} junction_parallel_driver.cpp)
32 target_link_libraries(${PARALLEL_DRIVER} ${JUNCTION_LIB})