-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (28 loc) · 884 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
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.20)
project(libCacheMoney)
set(CMAKE_CXX_STANDARD 20)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g")
message("Compiler: ${CMAKE_CXX_COMPILER_ID} - ${CMAKE_CXX_COMPILER_VERSION}")
if (UNIX)
set(PLATFORM_DIR linux)
else ()
set(PLATFORM_DIR windows)
endif ()
add_library(libCacheMoney SHARED
src/${PLATFORM_DIR}/utils.cpp
src/${PLATFORM_DIR}/intrinsics.cpp
src/common/utils.cpp
src/common/flush_reload.cpp
src/common/prime_probe.cpp
src/common/cache.cpp
src/common/l1.cpp
src/common/l3.cpp
src/common/eviction_set_builder.cpp
src/common/eviction_set_l3.cpp
src/common/ps_evset.cpp
include/linked_list.hpp
)
target_include_directories(libCacheMoney PRIVATE include)
add_subdirectory(victims)
enable_testing()
add_subdirectory(tests)