-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
71 lines (61 loc) · 1.71 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif ()
project(pmwcas-benchmark)
cmake_minimum_required(VERSION 3.11)
include(FetchContent)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -march=native")
# Google Test
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.8.1
)
FetchContent_GetProperties(googletest)
if (NOT googletest_POPULATED)
FetchContent_Populate(googletest)
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
endif ()
include(GoogleTest)
# Google Log
FetchContent_Declare(
glog
GIT_REPOSITORY https://github.com/google/glog.git
GIT_TAG v0.4.0
)
FetchContent_GetProperties(glog)
if (NOT glog_POPULATED)
FetchContent_Populate(glog)
set(WITH_GFLAGS OFF CACHE BOOL "we don't want gflags")
add_subdirectory(${glog_SOURCE_DIR} ${glog_BINARY_DIR})
endif ()
# Google Flags
FetchContent_Declare(
gflags
GIT_REPOSITORY https://github.com/gflags/gflags.git
GIT_TAG v2.2.2
)
FetchContent_GetProperties(gflags)
if (NOT gflags_POPULATED)
FetchContent_Populate(gflags)
add_subdirectory(${gflags_SOURCE_DIR} ${gflags_BINARY_DIR})
endif()
# PMwCAS
FetchContent_Declare(
pmwcas
GIT_REPOSITORY https://github.com/sfu-dis/pmwcas.git
GIT_TAG master
)
FetchContent_GetProperties(pmwcas)
if (NOT pmwcas_POPULATED)
FetchContent_Populate(pmwcas)
add_subdirectory(${pmwcas_SOURCE_DIR})
include_directories(${pmwcas_SOURCE_DIR} ${pmwcas_SOURCE_DIR}/include)
PMWCAS_DEFINE_ENV()
endif()
enable_testing()
include_directories(utils)
add_subdirectory(array_bench)
#add_subdirectory(doubly_linked_list)
add_subdirectory(skip_list)