-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
61 lines (42 loc) · 2.06 KB
/
Copy pathCMakeLists.txt
File metadata and controls
61 lines (42 loc) · 2.06 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
54
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 3.17)
project(prototype)
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
set(CMAKE_CXX_STANDARD 17)
set(ROCKSDB_BUILD_SHARED OFF CACHE BOOL "build shared libraries")
set(WITH_TOOLS OFF CACHE BOOL "disable tools")
set(WITH_CORE_TOOLS OFF CACHE BOOL "disable core tools")
set(WITH_TESTS OFF CACHE BOOL "disable tests")
set(WITH_GFLAGS 0 CACHE BOOL "")
add_subdirectory(rocksdb)
set(BuildVelocyPackExamples OFF CACHE BOOL "")
set(Maintainer OFF CACHE BOOL "")
add_subdirectory(velocypack)
set(CMAKE_REQUIRED_INCLUDES "${CMAKE_SOURCE_DIR}/asio/asio/include")
set(USE_STANDALONE_ASIO ON CACHE BOOL "")
add_subdirectory(simple-web-server)
target_include_directories(simple-web-server INTERFACE "asio/asio/include")
add_subdirectory(function2)
set(immer_BUILD_TESTS OFF CACHE BOOL "")
set(immer_BUILD_EXAMPLES OFF CACHE BOOL "")
set(immer_BUILD_DOCS OFF CACHE BOOL "")
set(immer_BUILD_EXTRAS OFF CACHE BOOL "")
add_subdirectory(immer EXCLUDE_FROM_ALL)
add_executable(prototype main.cpp futures.h replicated-log.cpp priority-queue.h scheduler.h remote-procedure-call.h replicated-log-2.cpp replicated-log-2.h rocksdb-handle.cpp rocksdb-handle.h deserialize.h persisted-log.cpp persisted-log.h futures/futures-2.h)
target_link_libraries(prototype velocypack)
target_include_directories(prototype PRIVATE rocksdb/include)
target_link_libraries(prototype rocksdb)
target_link_libraries(prototype simple-web-server)
target_link_libraries(prototype function2)
target_link_libraries(prototype immer)
target_compile_options(prototype PRIVATE "-fsanitize=address")
target_link_libraries(prototype asan)
add_executable(futures-2 futures/futures-2.cpp futures/box.h futures/continuation.h futures/helper.h futures/handler.h futures/base.h futures/devoidify.h)
target_compile_options(futures-2 PRIVATE "-fsanitize=address")
target_link_libraries(futures-2 asan)
target_link_libraries(futures-2 pthread)
find_package(Boost REQUIRED)
add_executable(asio-test asio-test.cpp)
target_link_libraries(asio-test ${Boost_LIBRARIES})
target_link_libraries(asio-test pthread)