Skip to content

Support cmake install#97

Open
xiaozhuai wants to merge 3 commits intomax0x7ba:masterfrom
xiaozhuai:master
Open

Support cmake install#97
xiaozhuai wants to merge 3 commits intomax0x7ba:masterfrom
xiaozhuai:master

Conversation

@xiaozhuai
Copy link

@xiaozhuai xiaozhuai commented Mar 6, 2026

See also microsoft/vcpkg#50329

Support following cmake usage

find_package(atomic_queue CONFIG REQUIRED)
target_link_libraries(main PRIVATE atomic_queue::atomic_queue)

@max0x7ba
Copy link
Owner

max0x7ba commented Mar 6, 2026

I defer reviewing this PR to original author of CMake files @RedSkittleFox , please.

```
2. Add `atomic_queue/include` directory (use full path) to the include paths of your build system.
3. `#include <atomic_queue/atomic_queue.h>` in your C++ source.
2. Add it as subdirectory in your `CMakeLists.txt`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the original instructions and add CMake-specific instructions into a sub-section, please.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I will solve this soon or later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants