Initial commit
This commit is contained in:
commit
5ee5c5cb2e
9 changed files with 461 additions and 0 deletions
18
CMakeLists.txt
Normal file
18
CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
cmake_minimum_required(VERSION 3.10) # Or a newer version if you prefer
|
||||
|
||||
project(RingBufferTest CXX)
|
||||
|
||||
# Specify the C++ standard to use (e.g., C++17)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# Add your executable
|
||||
add_executable(ringbuffer_test main.cpp ringbuffer.cpp)
|
||||
|
||||
# Add include directories for your header files
|
||||
target_include_directories(ringbuffer_test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
# Add debugging flags (important for debugging)
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
target_compile_options(ringbuffer_test PRIVATE -g)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue