The multiple queues processor.
-
create and go to the build directory
mkdir build && cd build
-
install the dependencies using conan (or you may skip this step if you already have boost installed)
conan install .. --build=missing
-
configure the project (note that you can disable usage of conan if you want)
cmake .. -DCMAKE_BUILD_TYPE=<Release|Debug> -DCMAKE_INSTALL_PREFIX=<path_to_install_library> -DUSE_CONAN=<ON|OFF>
-
build the project
cmake --build . --target all
-
install the library (copy files to <path_to_install_library>)
cmake --build . --target install
NOTE: you shoud enable tests with option "-DTESTS_ENABLE=ON" in configuration step
cmake --build . --target test
the library is header-only but you have to link the Boost.Fiber library and the thread library of the system with your app
find_package(Threads)
find_package(Boost REQUIRED COMPONENTS fiber)
find_package(yqueue 0.0.4 REQUIRED)
add_executable(your-app main.cpp)
target_link_libraries(your-app PRIVATE yqueue)