From b80136887a07e06e3a10a1468763178d16e7a50a Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Tue, 10 Dec 2024 22:59:54 +0100 Subject: [PATCH] Add moodycamel concurrentqueue --- 3rdParty/CMakeLists.txt | 1 + .../moodycamel_concurrentqueue/CMakeLists.txt | 15 +++++++++++++++ openVulkanoCpp/CMakeLists.txt | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 3rdParty/moodycamel_concurrentqueue/CMakeLists.txt diff --git a/3rdParty/CMakeLists.txt b/3rdParty/CMakeLists.txt index eb47921..6326f2c 100644 --- a/3rdParty/CMakeLists.txt +++ b/3rdParty/CMakeLists.txt @@ -33,6 +33,7 @@ add_subdirectory(units) add_subdirectory(libjpeg-turbo) add_subdirectory(msdf) add_subdirectory(eastl) +add_subdirectory(moodycamel_concurrentqueue) if (NOT IOS AND ENABLE_CURL) add_subdirectory(curl) endif() diff --git a/3rdParty/moodycamel_concurrentqueue/CMakeLists.txt b/3rdParty/moodycamel_concurrentqueue/CMakeLists.txt new file mode 100644 index 0000000..d4f7d3b --- /dev/null +++ b/3rdParty/moodycamel_concurrentqueue/CMakeLists.txt @@ -0,0 +1,15 @@ +include(FetchContent) + +if(NOT DEFINED MOODY_CONCURRENTQUEUE_REPO) + set(MOODY_CONCURRENTQUEUE_REPO https://github.com/cameron314/concurrentqueue.git) +endif () + +FetchContent_Declare( + moodycamel_concurrentqueue + EXCLUDE_FROM_ALL + GIT_REPOSITORY ${MOODY_CONCURRENTQUEUE_REPO} + GIT_TAG v1.0.4 + GIT_SHALLOW TRUE +) +FetchContent_MakeAvailable(moodycamel_concurrentqueue) + diff --git a/openVulkanoCpp/CMakeLists.txt b/openVulkanoCpp/CMakeLists.txt index 8ed12cd..c9e1f59 100644 --- a/openVulkanoCpp/CMakeLists.txt +++ b/openVulkanoCpp/CMakeLists.txt @@ -67,7 +67,7 @@ if (NOT ANDROID AND NOT IOS) endif() endif() -target_link_libraries(openVulkanoCpp PUBLIC magic_enum yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml unordered_dense units) +target_link_libraries(openVulkanoCpp PUBLIC magic_enum yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml unordered_dense concurrentqueue units) LinkAssimp(openVulkanoCpp) LinkLibArchive(openVulkanoCpp) LinkLibJpegTurbo(openVulkanoCpp)