-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
53 lines (48 loc) · 1.47 KB
/
CMakeLists.txt
File metadata and controls
53 lines (48 loc) · 1.47 KB
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
cmake_minimum_required(VERSION 3.15)
project(integer_sets)
include_directories(include)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(GMP REQUIRED)
set(CMAKE_CXX_STANDARD 23)
#[[
#############
## RocksDB ##
#############
add_subdirectory(submodules/rocksdb)
include_directories(submodules/rocksdb/include)
find_package(snappy)
include_directories(${SNAPPY_INCLUDE_DIR})
find_package(LZ4)
include_directories(${LZ4_INCLUDE_DIR})
find_package(RocksDB)
message(STATUS "RocksDB: ${ROCKSDB_INCLUDE_DIRS}")
message(STATUS "${ROCKSDB_LIBRARIES}")
include_directories(${ROCKSDB_INCLUDE_DIRS})
#${SNAPPY_LIBRARIES} ${LZ4_LIBRARY} ${ROCKSDB_LIBRARIES}
LINK_DIRECTORIES(${SNAPPY_LIBRARIES})
LINK_DIRECTORIES(${LZ4_LIBRARY})
LINK_DIRECTORIES(${ROCKSDB_LIBRARIES})
set(LIBM m)
set(LIBZ z)
set(LIBZ4 lz4)
set(LIBZSTD zstd)
set(LIBDL dl)
set(LIBSNAPPY snappy)
set(LIBBZ2 bz2)
set(LIBFDB forestdb)
set(LIBLDB leveldb)
set(LIBRDB rocksdb)
]]
add_library(integer_set_lib src/basic_operations.cpp
include/basic_operations.h
submodules/murmur/MurmurHash3.cpp
submodules/murmur/MurmurHash3.h
src/BIgInteger2.cpp
# src/BigIntegerForBitMask.cpp
# include/BigIntegerForBitMask.h
# include/block_sm_intgraph.h
# src/mpzDAG.cpp
)
target_link_libraries(integer_set_lib gmp)
add_executable(integer_sets main.cpp )
target_link_libraries(integer_sets integer_set_lib gmp)