-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (23 loc) · 1005 Bytes
/
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
cmake_minimum_required(VERSION 3.10)
project(HashmapBenchmark VERSION 0.0.1)
# Add executable
add_executable(HashmapBenchmark src/main.cpp)
# Enable C++17
target_compile_features(HashmapBenchmark PUBLIC cxx_std_17)
set_target_properties(HashmapBenchmark PROPERTIES CXX_EXTENSIONS OFF)
# Add Libcuckoo
target_include_directories(HashmapBenchmark PUBLIC "libs/libcuckoo")
# Add Intel TBB
set(TBB_BUILD_TESTS OFF CACHE BOOL "Build TBB's tests" FORCE)
add_subdirectory("libs/tbb")
target_include_directories(HashmapBenchmark PUBLIC "libs/tbb/include")
target_link_libraries(HashmapBenchmark PUBLIC tbb)
# Add Junction
add_subdirectory("libs/junction")
target_include_directories(HashmapBenchmark PUBLIC ${JUNCTION_ALL_INCLUDE_DIRS})
target_link_libraries(HashmapBenchmark PUBLIC ${JUNCTION_ALL_LIBRARIES})
# Add cxxopts
target_include_directories(HashmapBenchmark PUBLIC "libs/cxxopts/include")
# Install
set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})
install(TARGETS HashmapBenchmark DESTINATION bin)