Skip to content

Commit 454c1f7

Browse files
committed
Change include folder
1 parent b5f76b5 commit 454c1f7

File tree

8 files changed

+127
-17724
lines changed

8 files changed

+127
-17724
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v1.0.0.2 - 2025-10-21
2+
- Changed include folder from include/slick_queue to include/slick
3+
- Changed test framework from catch2 to googletest
4+
15
# v1.1.0.1 - 2025-10-21
26
- Fixed Linux implementation to read size from shared memory when opening existing segments
37
- Added size validation when opening existing shared memory with size mismatch

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.10)
22

3-
set(BUILD_VERSION 1.1.0.1)
3+
set(BUILD_VERSION 1.1.0.2)
44

55
project(slick_queue
66
VERSION ${BUILD_VERSION}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ over shared memory for inter-process communication.
2828
SlickQueue is header-only. Simply add the `include` directory to your project's include path:
2929

3030
```cpp
31-
#include "slick_queue/slick_queue.h"
31+
#include "slick/slick_queue.h"
3232
```
3333

3434
### Using CMake
@@ -53,7 +53,7 @@ target_link_libraries(your_target PRIVATE slick_queue)
5353
### Basic Example
5454

5555
```cpp
56-
#include "slick_queue/slick_queue.h"
56+
#include "slick/slick_queue.h"
5757

5858
// Create a queue with 1024 slots (must be power of 2)
5959
slick::SlickQueue<int> queue(1024);
@@ -74,7 +74,7 @@ if (result.first != nullptr) {
7474
### Shared Memory Example (IPC)
7575
7676
```cpp
77-
#include "slick_queue/slick_queue.h"
77+
#include "slick/slick_queue.h"
7878
7979
// Process 1 (Server/Writer)
8080
slick::SlickQueue<int> server(1024, "my_queue");
@@ -94,7 +94,7 @@ if (result.first != nullptr) {
9494
### Multi-Producer Multi-Consumer
9595

9696
```cpp
97-
#include "slick_queue/slick_queue.h"
97+
#include "slick/slick_queue.h"
9898
#include <thread>
9999

100100
slick::SlickQueue<int> queue(1024);
@@ -134,7 +134,7 @@ c1.join(); c2.join();
134134
### Work-Stealing with Shared Atomic Cursor
135135
136136
```cpp
137-
#include "slick_queue/slick_queue.h"
137+
#include "slick/slick_queue.h"
138138
#include <thread>
139139
#include <atomic>
140140

tests/CMakeLists.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1+
find_package(GTest QUIET)
2+
3+
if(NOT GTest_FOUND)
4+
include(FetchContent)
5+
FetchContent_Declare(
6+
googletest
7+
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
8+
)
9+
# For Windows: Prevent overriding the parent project's compiler/linker settings
10+
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
11+
FetchContent_MakeAvailable(googletest)
12+
endif()
13+
114
add_executable(slick_queue_tests tests.cpp shm_tests.cpp)
215

3-
target_link_libraries(slick_queue_tests PRIVATE slick_queue)
16+
target_link_libraries(slick_queue_tests PRIVATE slick_queue GTest::gtest_main)
417

518
enable_testing()
6-
add_test(NAME slick_queue_tests COMMAND slick_queue_tests)
19+
include(GoogleTest)
20+
gtest_discover_tests(slick_queue_tests)

0 commit comments

Comments
 (0)