-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (19 loc) · 1.36 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
cmake_minimum_required(VERSION 3.13)
project(hashcontainerscomparison)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maes -mavx -mavx2 -DXXH_INLINE_ALL -DXXH_CPU_LITTLE_ENDIAN=1 -DSPDLOG_NO_EXCEPTIONS")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
add_subdirectory(${CMAKE_SOURCE_DIR}/external/abseil-cpp)
add_executable(hashcontainerscomparison src/main.cpp src/map_benches.cpp src/hash_benches.cpp ${CMAKE_SOURCE_DIR}/external/xxHash/xxhash.c)
include_directories("${CMAKE_SOURCE_DIR}/external/wyhash")
include_directories("${CMAKE_SOURCE_DIR}/external/robin-map/include")
include_directories("${CMAKE_SOURCE_DIR}/external/folly/")
include_directories("${CMAKE_SOURCE_DIR}/external/folly/_build")
include_directories("${CMAKE_SOURCE_DIR}/external/abseil-cpp")
include_directories("${CMAKE_SOURCE_DIR}/external/xxHash")
include_directories("${CMAKE_SOURCE_DIR}/external/robin-hood-hashing/src/include")
include_directories("${CMAKE_SOURCE_DIR}/external/benchmark/include")
include_directories("${CMAKE_SOURCE_DIR}/external/spdlog/include")
target_link_libraries(hashcontainerscomparison ${CMAKE_SOURCE_DIR}/external/benchmark/build/src/libbenchmark.a)
target_link_libraries(hashcontainerscomparison ${CMAKE_SOURCE_DIR}/external/folly/_build/libfolly.a)
target_link_libraries(hashcontainerscomparison absl::base absl::flat_hash_map absl::hash)