Add concurrency handling implementation with ticket management and file locking
This commit is contained in:
@@ -3,13 +3,31 @@ project(BinaryTable)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
# Add include directories globally
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/Public)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/src/Private)
|
||||
|
||||
# Main executable with integrated binary table implementation
|
||||
add_executable(main
|
||||
binary_table.h
|
||||
binary_table.cpp
|
||||
src/Private/sweepstore/header.cpp
|
||||
src/Public/sweepstore/utils/helpers.h
|
||||
src/Private/sweepstore/structures.cpp
|
||||
src/Public/sweepstore/structures.h
|
||||
src/Private/sweepstore/sweepstore.cpp
|
||||
src/Public/sweepstore/sweepstore.h
|
||||
src/Public/sweepstore/concurrency.h
|
||||
src/Private/sweepstore/concurrency.cpp
|
||||
src/Public/sweepstore/utils/file_lock.h
|
||||
src/Public/sweepstore/utils/file_handle.h
|
||||
src/Public/sweepstore/header.h
|
||||
src/Private/sweepstore/benchmark.cpp
|
||||
)
|
||||
|
||||
# Add include directories
|
||||
target_include_directories(main PRIVATE ${CMAKE_SOURCE_DIR}/src/Public)
|
||||
|
||||
# Compiler Settings
|
||||
if(MSVC)
|
||||
target_compile_options(main PRIVATE /W4)
|
||||
|
||||
Reference in New Issue
Block a user