-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (24 loc) · 759 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (24 loc) · 759 Bytes
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 4.1.1)
project(DriveDB VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Add source directories
set(SRC_MAIN
src/main/launcher.cpp
src/main/repl_launcher.cpp
src/cli/config.cpp
src/main/daemon_launcher.cpp
src/engine/engine.cpp
src/catalog/catalog.cpp
src/storage/segment/segment_manager.cpp
src/storage/buffer/buffer_pool.cpp
src/execution/executor.cpp
src/storage/table/table_heap.cpp
)
# Include directories
include_directories(${CMAKE_SOURCE_DIR})
# Create executable
add_executable(boltd ${SRC_MAIN})
# Optional: link pthread for signal handling (daemon)
find_package(Threads REQUIRED)
target_link_libraries(boltd Threads::Threads)